An h1 header
一级标题
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. 请注意 --- 不考虑星号 --- 实际文本内容从第4列开始。
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. ☺ 使用三个连字符表示长破折号。使用两个连字符表示范围(例如:“都在12-14章”)。三个点…将被转换为省略号。支持Unicode。☺
An h2 header
二级标题
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: 再次注意实际文本如何从第4列开始(距左侧4个字符)。这是一个代码示例:
# Let me re-iterate ...for i in 1 .. 10 { do-something(i) }
As you probably guessed, indented 4 spaces. By the way, instead of indenting the block, you can use delimited blocks, if you like: 如你所料,缩进4个空格。顺便说一句,如果你愿意,可以使用定界块代替缩进块:
define foobar() { print "Welcome to flavor country!";}
(which makes copying & pasting easier). You can optionally mark the delimited block for Pandoc to syntax highlight it: (这使得复制粘贴更容易)。你可以选择标记定界块以便Pandoc进行语法高亮:
import time# Quick, count to ten!for i in range(10): # (but not *too* quick) time.sleep(0.5) print i
An h3 header
三级标题
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 spoonuncover potstircover potbalance wooden spoon precariously on pot handlewait 10 minutesgoto 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). 再次注意文本如何在4空格缩进处对齐(包括上面继续第3项的最后一行)。
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. 这是一个指向网站的链接,指向本地文档的链接,以及指向当前文档中的章节标题的链接。这是一个脚注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: (以上是表格的标题。)Pandoc也支持多行表格:
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. 番茄 : “tomato”中没有”e”。
Again, text is indented 4 spaces. (Put a blank line between each term/definition pair to spread things out more.) 同样,文本缩进4个空格。(在每个术语/定义对之间加空行可以使内容更分散。)
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. 并且注意,你可以用反斜杠转义任何你想原样显示的标点字符,例如:`foo`, *bar*等。