This is mostly for me. These are the little things that sometimes confuse me about Markdown and I find myself having to search the web for. So I’ll write them down. Blogging as memory extension.
Except it can! In many (most?) varietals of Markdown, you can put
on the element and it will allow Markdown inside of it.
### Header
<div class="special-class" markdown="1">
1. All
1. Fixed
1. Up
</div>
Multiple paragraph lists and blockquotes
If a list item need multiple paragraphs in it, you can’t just break multiple lines and keep going. The next paragraph needs to be indented for it to be considered part of the same list item. Otherwise the list ends and new one starts.
1. one paragraph
more for 1st list item :)
1. another paragraph
Blockquotes are similar:
> First bit.
> Second bit.
There will be no line break there. Those two bits will be inside the same
inside the
. To make them multiple paragraphs, you’ll need a blank line in between.
> First bit.
> Second bit.
If you wanted them to be entirely separate
s, without any other text in between, I’m not sure what’d you do.
Escaping characters
Certain characters have meaning in markdown, like how *asterisks* make text italic. But what if you want to actually display an asterisk? You escape it with a backslash, like *.
You can even escape the backslash itself, meaning is .
ID’s
Markdown supports HTML, so if you need any special attributes on elements, you can just use HTML. But it’s nice to not have to.
Different varietals of Markdown handle it in different ways.
A somewhat common way is to allow them on headers like this:
### Custom IDs {#custom-id}
Some varietals simply add an ID on all headings for you automatically.