原文位置: https://markdown.com.cn/cheat-sheet.html#%E6%80%BB%E8%A7%88
總覽#
Markdown 速查表提供了所有 Markdown
語法元素的基本解釋。如果你想了解某些語法元素的更多信息,請參閱更詳細的
基本語法 和 擴展語法.
基本語法#
這些是 John Gruber 的原始設計文檔中列出的元素。所有 Markdown
應用程序都支持這些元素。
元素 | Markdown 語法 |
---|---|
標題(Heading) | # H1 一級標題 ## H2 二級標題 ### H3 三級標題 |
粗體(Bold) | **bold text** |
斜體(Italic) | *italicized text* |
引用塊(Blockquote) | > blockquote |
有序列表(Ordered List) | 1. First item 2. Second item 3. Third item |
無序列表(Unordered List) | - First item - Second item - Third item |
代碼(Code) | `code` |
分隔線(Horizontal Rule) | --- |
鏈接(Link) | [title](https://www.example.com) |
圖片(Image) |  |
擴展語法#
這些元素通過添加額外的功能擴展了基本語法。但是,並非所有 Markdown
應用程序都支持這些元素。
元素 | Markdown 語法 |
---|---|
表格(Table) | | Syntax | Description | | ----------- | ----------- | | Header | Title | | Paragraph | Text | |
代碼塊(Fenced Code Block) | ``` { "firstName": "John", "lastName": "Smith", "age": 25 } ``` |
腳註(Footnote) | Here’s a sentence with a footnote. [^1] [^1] : This is the footnote. |
標題編號(Heading ID) | ### My Great Heading {#custom-id} |
定義列表(Definition List) | term : definition |
任務列表(Task List) | - [x] Write the press release - [ ] Update the website - [ ] Contact the media |