{ "status": "OK", "last_updated": "2017-11-04", "basic_syntax": [ { "name" : "块引用(Blockquotes)", "description" : "要创建块引用,请在段落前添加一个 `>` 符号", "examples" : [ { "markdown" : "> Dorothy followed her through many of the beautiful rooms in her castle.", "html" : "

Dorothy followed her through many of the beautiful rooms in her castle.

" } ], "additional_examples" : [ { "name" : "Blockquotes with Multiple Paragraphs", "description" : "Blockquotes can contain multiple paragraphs. Add a `>` on the blank lines between the paragraphs.", "markdown" : "> Dorothy followed her through many of the beautiful rooms in her castle.\n>\n> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.\n", "html" : "

Dorothy followed her through many of the beautiful rooms in her castle.

The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.

" } , { "name" : "Nested Blockquotes", "description" : "Blockquotes can be nested. Add a `>>` in front of the paragraph you want to nest.", "markdown" : "> Dorothy followed her through many of the beautiful rooms in her castle.\n>\n>> The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.\n", "html" : "

Dorothy followed her through many of the beautiful rooms in her castle.

The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.

" } , { "name" : "Blockquotes with Other Elements", "description" : "Blockquotes can contain other Markdown formatted elements. Not all elements can be used — you'll need to experiment to see which ones work.", "markdown" : "> ### The quarterly results look great!\n>\n> - Revenue was off the chart.\n> - Profits were higher than ever.\n>\n> *Everything* is going according to **plan**.\n", "html" : "

The quarterly results look great!

Everything is going according to plan.

" } ] } , { "name" : "粗体(Bold)", "description" : "要加粗文本,请在单词或短语的前后各添加两个星号(asterisks)或下划线(underscores)。如需加粗一个单词或短语的中间部分用以表示强调的话,请在要加粗部分的两侧各添加两个星号(asterisks),且与其它部分之间无须添加空格。", "examples" : [ { "markdown" : "I just love **bold text**.", "html" : "I just love bold text." } , { "markdown" : "I just love __bold text__.", "html" : "I just love bold text." } , { "markdown" : "Love**is**bold", "html" : "Loveisbold" } ], "additional_examples" : [ ] } , { "name" : "代码", "description" : "要将单词或短语表示为代码,请将其包裹在反引号 (`` ` ``) 中。", "examples" : [ { "markdown" : "At the command prompt, type `nano`.", "html" : "At the command prompt, type nano." } ], "additional_examples" : [ { "name" : "Escaping Backticks", "description" : "If the word or phrase you want to denote as code includes one or more backticks, you can escape it by enclosing the word or phrase in double backticks (``).", "markdown" : "``Use `code` in your Markdown file.``", "html" : "Use `code` in your Markdown file." } , { "name" : "Code Blocks", "description" : "To create code blocks, indent every line of the block by at least four spaces or one tab.", "markdown" : "\n \n \n\n", "html" : "
" } ] } , { "name" : "标题(Headings)", "description" : "要创建标题,请在单词或短语前面添加井号 (`#`) 。井号的数量代表了标题的级别。例如,添加三个井号即创建一个三级标题 (`

`) (例如:`### My Header`)。", "examples" : [ { "markdown" : "# Heading level 1", "html" : "

Heading level 1

" } , { "markdown" : "## Heading level 2", "html" : "

Heading level 2

" } , { "markdown" : "### Heading level 3", "html" : "

Heading level 3

" } , { "markdown" : "#### Heading level 4", "html" : "

Heading level 4

" } , { "markdown" : "##### Heading level 5", "html" : "
Heading level 5
" } , { "markdown" : "###### Heading level 6", "html" : "
Heading level 6
" } ], "additional_examples" : [ { "name" : "Alternative H1 Syntax", "description" : "Alternatively, on the line below the text, add any number of == characters for heading level 1.", "markdown" : "Heading level 1\n===============\n", "html" : "

Heading level 1

" } , { "name" : "Alternative H2 Syntax", "description" : "Alternatively, on the line below the text, add any number of -- characters for heading level 2.", "markdown" : "Heading level 2\n---------------\n", "html" : "

Heading level 2

" } ] } , { "name" : "分隔线(Horizontal Rules)", "description" : "要创建分隔线,请在单独一行上使用三个或多个星号 (`***`)、破折号 (`---`) 或下划线 (`___`) ,并且不能包含其他内容。", "examples" : [ { "markdown" : "***", "html" : "
" } , { "markdown" : "---", "html" : "
" } , { "markdown" : "_________________", "html" : "
" } ], "additional_examples" : [ ] } , { "name" : "图片(Images)", "description" : "要添加图片,首先请添加感叹号(`!`),然后紧跟着是方括号,方括号中可添加替代文本(alt text,即图片显示失败后显示此文本),最后跟着圆括号,圆括号中添加图片资源的路径或 URL。你可以选择在圆括号中的 URL 之后添加标题(即 title 属性)。", "examples" : [ { "markdown" : "![The San Juan Mountains are beautiful!](/assets/images/san-juan-mountains.jpg \"San Juan Mountains\")\n", "html" : "\"The" } ], "additional_examples" : [ { "name" : "带链接的图片", "description" : "要为图片添加链接,请先为图片的 Markdown 标记添加一个方括号,然后紧跟着一个圆括号,并在圆括号中添加链接地址。", "markdown" : "[![An old rock in the desert](/assets/images/shiprock.jpg \"Shiprock, New Mexico by Beau Rogers\")](https://www.flickr.com/photos/beaurogers/31833779864/in/photolist-Qv3rFw-34mt9F-a9Cmfy-5Ha3Zi-9msKdv-o3hgjr-hWpUte-4WMsJ1-KUQ8N-deshUb-vssBD-6CQci6-8AFCiD-zsJWT-nNfsgB-dPDwZJ-bn9JGn-5HtSXY-6CUhAL-a4UTXB-ugPum-KUPSo-fBLNm-6CUmpy-4WMsc9-8a7D3T-83KJev-6CQ2bK-nNusHJ-a78rQH-nw3NvT-7aq2qf-8wwBso-3nNceh-ugSKP-4mh4kh-bbeeqH-a7biME-q3PtTf-brFpgb-cg38zw-bXMZc-nJPELD-f58Lmo-bXMYG-bz8AAi-bxNtNT-bXMYi-bXMY6-bXMYv)\n", "html" : "\"An" } ] } , { "name" : "斜体(Italic)", "description" : "要用斜体显示文本,请在单词或短语前后各添加一个星号(asterisk)或下划线(underscore)。要斜体突出单词的中间部分,请在字母前后各添加一个星号,中间不要带空格。 ", "examples" : [ { "markdown" : "Italicized text is the *cat's meow*.", "html" : "Italicized text is the cat's meow." } , { "markdown" : "Italicized text is the _cat's meow_.", "html" : "Italicized text is the cat's meow." } , { "markdown" : "A*cat*meow", "html" : "Acatmeow" } ], "additional_examples" : [ ] } , { "name" : "换行(Line Breaks)", "description" : "在一行的末尾添加两个或多个空格,然后按回车键(return),即可创建一个换行(line break)或新行 (`
`)。", "examples" : [ { "markdown" : "This is the first line. \nAnd this is the second line.\n", "html" : "

This is the first line.
And this is the second line.

" } ], "additional_examples" : [ ] } , { "name" : "链接(Links)", "description" : "要创建链接,请将链接文本括在方括号(例如 `[Duck Duck Go]`)中,后面紧跟着括在圆括号中的 URL(例如 `(https://duckduckgo.com)` )。你可以选择在圆括号中的 URL 后面添加标题(即 title 属性)", "examples" : [ { "markdown" : "My favorite search engine is [Duck Duck Go](https://duckduckgo.com \"The best search engine for privacy\").", "html" : "My favorite search engine is Duck Duck Go." } ], "additional_examples" : [ { "name" : "URL 和电子邮件地址", "description" : "如需快速将 URL 或电子邮件地址转换为链接,请将其括在尖括号内。", "markdown" : "", "html" : "https://www.markdownguide.orgfake@example.com" } , { "name" : "格式化链接", "description" : "如需强调某个链接,请在方括号前及圆括号后添加星号。", "markdown" : "I love supporting **[EFF](https://eff.org)**. This is the *[Markdown Guide](https://www.markdownguide.org)*.", "html" : "I love supporting EFF. This is the Markdown Guide." } ] } , { "name" : "有序列表(Ordered Lists)", "description" : "要创建有序列表,请在每个列表项前添加数字并紧跟一个英文句点。数字不必按数学顺序排列,但是列表应当以数字 1 起始。", "examples" : [ { "markdown" : "1. First item\n2. Second item\n3. Third item\n4. Fourth item\n", "html" : "
  1. First item
  2. Second item
  3. Third item
  4. Fourth item
" } , { "markdown" : "1. First item\n1. Second item\n1. Third item\n1. Fourth item\n", "html" : "
  1. First item
  2. Second item
  3. Third item
  4. Fourth item
" } , { "markdown" : "1. First item\n8. Second item\n3. Third item\n5. Fourth item\n", "html" : "
  1. First item
  2. Second item
  3. Third item
  4. Fourth item
" } , { "markdown" : "1. First item\n2. Second item\n3. Third item\n 1. Indented item\n 2. Indented item\n4. Fourth item\n", "html" : "
  1. First item
  2. Second item
  3. Third item
    1. Indented item
    2. Indented item
  4. Fourth item
" } ], "additional_examples" : [ ] } , { "name" : "段落(Paragraphs)", "description" : "要创建段落,请使用空白行将一行或多行文本进行分隔。不要用空格(spaces)或制表符( tabs)缩进段落。", "examples" : [ { "markdown" : "I really like using Markdown.\n\nI think I'll use it to format all of my documents from now on.\n", "html" : "

I really like using Markdown.

I think I'll use it to format all of my documents from now on.

" } ], "additional_examples" : [ ] } , { "name" : "无序列表(Unordered Lists)", "description" : "要创建无序列表,请在每个列表项前面添加破折号 (`-`)、星号 (`*`) 或加号 (`+`) 。缩进一个或多个列表项可创建嵌套列表。", "examples" : [ { "markdown" : "- First item\n- Second item\n- Third item\n- Fourth item\n", "html" : "" } , { "markdown" : "* First item\n* Second item\n* Third item\n* Fourth item\n", "html" : "" } , { "markdown" : "+ First item\n* Second item\n- Third item\n+ Fourth item\n", "html" : "" } , { "markdown" : "- First item\n- Second item\n- Third item\n - Indented item\n - Indented item\n- Fourth item\n", "html" : "" } ], "additional_examples" : [ ] } ] }