An h1 标题
段落之间以空行分隔。
第二段。 斜体, 粗体, and monospace。分项列表如下: look like:
- this one
- that one
- the other one
请注意 --- 不考虑星号 --- 实际文本内容从第 4 列开始。
块引用的写法如下。
如果您愿意,它们可以跨越多个段落。
使用 3 个破折号表示长破折号。使用 2 个破折号表示范围(例如,“全部在第 12-14 章中”)。三个点…将转换为省略号。支持 Unicode。☺
An h2 标题
以下是一个编号列表:
- 第一项
- 第二项
- 第三项
请再次注意实际文本如何从第 4 列开始(左侧 4 个字符)。以下是代码示例:
# Let me re-iterate ...
for i in 1 .. 10 { do-something(i) }
你可能已经猜到了,缩进 4 个空格。顺便说一句,如果你愿意,你可以使用分隔块,而不是缩进块:
define foobar() {
print "Welcome to flavor country!";
}
(这使得复制和粘贴更容易)。您可以选择标记分隔块,以便 Pandoc 语法高亮显示它:
import time
# Quick, count to ten!
for i in range(10):
# (but not *too* quick)
time.sleep(0.5)
print i
An h3 标题
Now a nested list:
First, get these ingredients:
- carrots
- celery
- lentils
Boil some water.
Dump everything in the pot and follow this algorithm:
find wooden spoon uncover pot stir cover pot balance wooden spoon precariously on pot handle wait 10 minutes goto first step (or shut off burner when done)Do not bump wooden spoon or it will fall.
Notice again how text always lines up on 4-space indents (including that last line which continues item 3 above).
Here’s a link to a website, to a local doc, and to a section heading in the current doc. Here’s a footnote 1.
Tables can look like this:
size material color
9 leather brown 10 hemp canvas natural 11 glass transparent
Table: Shoes, their sizes, and what they’re made of
(The above is the caption for the table.) Pandoc also supports multi-line tables:
keyword text
red Sunsets, apples, and other red or reddish things.
green Leaves, grass, frogs and other things it’s not easy being.
A horizontal rule follows.
Here’s a definition list:
apples : Good for making applesauce. oranges : Citrus! tomatoes : There’s no “e” in tomatoe.
Again, text is indented 4 spaces. (Put a blank line between each term/definition pair to spread things out more.)
Here’s a “line block”:
| Line one | Line too | Line tree
and images can be specified like so:
Inline math equations go in like so: . Display math should get its own line and be put in in double-dollarsigns:
And note that you can backslash-escape any punctuation characters which you wish to be displayed literally, ex.: `foo`, *bar*, etc.
Footnotes
Footnote text goes here. ↩