Code blocks:
<div>
hello!
</div>
h1 {
color: pink;
}
// Quick, count squares!
for (let i = 0; i < 10; i++) {
console.log(i * i);
}
Paragraphs are separated by a blank line.
2nd paragraph. Italic, bold, and monospace
. Itemized lists
look like:
- this one
- that one
- the other one
Note that --- not considering the asterisk --- the actual text content starts at 4-columns in.
Block quotes are written like so.
They can span multiple paragraphs, if you like.
Use 3 dashes for an em-dash. Use 2 dashes for ranges (ex., "it's all in chapters 12--14"). Three dots ... will be converted to an ellipsis. Unicode is supported. ☺
Here's a numbered list:
- first item
- second item
- third item
Note again how the actual text starts at 4 columns in (4 characters from the left side). Here's a code sample:
# Let me re-iterate ...
for (let i = 0; i < 10; i++) {/* do something! */}
As you probably guessed, indented 4 spaces. By the way, instead of indenting the block, you can use delimited blocks, if you like:
def foobar():
print "Welcome to flavor country!"
(which makes copying & pasting easier). You can optionally mark the delimited block for Pandoc to syntax highlight it: