Indenting with Markdown (on Forum and in the Handbook)
- A "colon and space" (preceding a paragraph) works here on the forum. Only problem is—as with this line—I can't get a normal paragraph margin preceding the indented text:
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
-
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
... but note "colon and space" does not work in the Handbook.
Is there a known technique that works in both the forum and handbook? Blended HTML?
Comments
a couple spaces (4 IIRC) do indent too. This is used in the handbook for sure.
But it can lead to this too:
In reply to a couple spaces (4 IIRC) do… by Jojo-Schmitz
Thanks Jojo, but as you suggested, I'd like to avoid that PRE/codeblock formatting.
I thought of using blended HMTL with an inline CSS margin set on a div, like this:
... but it produces this:
Line 1 sample text in a div element
Line 1 sample text in a div element
Lorem ipsum dolor sit amet, consectetur adipisicing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
===============
I've understood that the forum used to support blended HTML, but not currently. And I supposed the Handbook could be different. Whatever the case, it seemed like the : symbol wasn't making indents. And at times I'd like to be able to get successive indents, so I thought perhaps there was a better mechanism.
scorster
In reply to this is line 1 text in a div by scorster
Colon space does indent, but only one level. It is a definition list (in MarkDown) after all
In reply to Colon space does indent, … by Jojo-Schmitz
Right. I used colon space and got a similar result in my opening post here on the forum.
Do you know if colon space works on the Handbook too? Wasn't working for me earlier today, but maybe I goofed something.
Blended HTML might be more straight forward, like the div example I gave. But it seems like on a certain subset is allowed.
In reply to Right. I used colon space… by scorster
Yes it does work in the handbook too, see the glossary linked to above
In reply to Right. I used colon space… by scorster
Another option is
non-breaking spaces,
(4 in this example)In reply to Another option is non… by Jojo-Schmitz
I temporarily used non-breaking spaces in the Handbook ... before posting here for a better method.
Non-breaking spaces work fine when one's sure the line won't break. A very unattractive left edge occurs when the line breaks.
I just tried colon space again. I guess Markdown coverts bullets to an unordered list? And understandably the colon space doesn't want to render in an unordered list. And it doesn't want preceding hard spaces.
Blended HTML? Maybe a paragraph with a left-margin styled inline?
In reply to I temporarily used non… by scorster
You can't combine an unordered list with a definition list
In reply to I temporarily used non… by scorster
Why don't you use an ordered list there?
In reply to Why don't you use an ordered… by Jojo-Schmitz
Jojo wrote *Why don't you use an ordered list *
I worked it out by shortening lines enough to prevent wrapping.
I avoided an unordered list it get's unpleasantly bullet pointy. But if I need to use longer lines I consider your suggestion of an ordered list.
I always thought is was a huge oversight that HTML doesn't have a Indent and tab settings, per paragraph or per div .... indents and tabs are universally supported word processors.
scorster
In reply to Jojo wrote *Why don't you… by scorster
Not sure I like the result, here is how it looks on my mobile
In reply to Not sure I like the result,… by Jojo-Schmitz
Yep. I expected that nasty wrap in a narrow presentation—it's precisely what I was attempting to avoid and it's why I was looking for a true indent.
I'm not sure I can concoct an attractive fix in Markdown. Maybe some else can?
scorster
In case anyone needs it: Markdown – Basic Syntax.