Markdown
速查表
基本语法
元素 | Markdown 语法 |
---|---|
标题 (Heading) | # H1 ## H2 ### H3 |
粗体 (Blod) | **blod text** |
斜体 (Italic) | *italicized text* |
引用块 (Blockquote) | > blockquote |
有序列表 (Ordered List) | 1. First item |
无序列表 (Unordered List) | - First item |
代码 (Code) | code |
分隔线 (Horizontal Rule) | --- |
链接 (Link) | [title](https://www.example.com) |
图片 (Image) |  |
扩展语法
元素 | Markdown 语法 |
---|---|
表格 (Table) | ` |
代码块 (Fenced Code Block) | ``` {"name": "John"} ``` |
脚注 (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 |
删除线 (Strikethrough) | ~~The world is flat.~~ |
任务列表 (Task List) | - [x] Write the press release |
其他语法
markdown 空格缩进与首行缩进
一个汉字占两个空格大小,所以使用四个空格就可以达到首行缩进两个汉字的效果
一个空格:
 
或 
两个空格:
 
或 
不换行空格:
或