引用语法
创建块引用,要在段落前添加一个 > 符号。
多个段落的块引用
MARKDOWN
> The custom is widely believed to be linked to Guangdong's hot and humid subtropical climate,
>
> which creates favorable conditions for the growth of microorganisms.
The custom is widely believed to be linked to Guangdong's hot and humid subtropical climate,
which creates favorable conditions for the growth of microorganisms.
嵌套块引用
在段落前添加两个大于号 >> 表示两层嵌套。
MARKDOWN
> The custom is widely believed to be linked to Guangdong's hot and humid subtropical climate,
>
>> which creates favorable conditions for the growth of microorganisms.
The custom is widely believed to be linked to Guangdong's hot and humid subtropical climate,
which creates favorable conditions for the growth of microorganisms.
带有其它元素的块引用
MARKDOWN
> - Revenue was off the chart.
> - Profits were higher than ever.
>
> *Everything* is going according to **plan**.
- Revenue was off the chart.
- Profits were higher than ever.
Everything is going according to plan.
代码块语法
MARKDOWN
```markdown
```
MARKDOWN
代码块嵌套
不用转义符 \,使用更多数量反引号外层包裹嵌套即可
规则:外层代码块的反引号数量 > 内层要展示的反引号数量
内层要展示 ```(3 个),外层用 4 个反引号 ````` 包裹
MARKDOWN
````markdown
````
列表
有序列表
创建有序列表,要在每个列表项前添加数字和一个英文句点。句点后切记要空格!
MARKDOWN
1. First item
2. Second item
3. Third item
- First item
- Second item
- Third item
无序列表
创建无序列表,要在每个列表前使用 -、* 或 + 加空格。推荐统一使用-。 切记后加空格!
MARKDOWN
- First item
* Second item
+ Third item
- First item
- Second item
- Third item
表格
使用短横线至少三个连字符--- 来分隔表头和表身,使用竖线 | 来分隔列,每行开头和结尾的竖线是可选的。
MARKDOWN
| Syntax | Description |
| ---------- | ----------- |
| Header | Title |
| Paragraph | Text |
| Syntax | Description |
|---|---|
| Header | Title |
| Paragraph | Text |
Tip: 使用连字符和竖线创建表可能比较麻烦。可以使用 Markdown Tables Generator 。使用图形界面构建表,然后将生成的 Markdown 格式的文本复制到文件中。
对齐
对齐表格内容,可以通过在 --- 中添加冒号 : 实现。冒号仅出现在左边表示左对齐,出现在两边表示居中对齐,仅出现在右边表示右对齐。
MARKDOWN
| 左对齐 | 居中对齐 | 右对齐 |
| :--- | :---: | ---: |
| 内容 | 内容 | 内容 |
| 内容 | 内容 | 内|容 |
| 左对齐 | 居中对齐 | 右对齐 |
|---|---|---|
| 内容 | 内容 | 内容 |
| 内容 | 内容 | 内|容 |
在表中转义竖线字符
您可以使用表格的 HTML字符代码|在表中显示竖线`|`字符。
脚注
创建脚注时,带有链接的上标数字会出现在你引用脚注的位置。 可以单击链接以跳转至页面底部的脚注内容处。
创建脚注参考,请在方括号[^1]内添加插入符号和标识符。标识符可以是数字或单词,但不能包含空格或制表符
MARKDOWN
本文参考了 [Markdown 官方教程](https://markdown.com.cn/) 的基本语法[^1] 和扩展语法[^2]。
[^1]: [Markdown 基本语法](https://markdown.com.cn/basic-syntax/)
[^2]: [Markdown 扩展语法](https://markdown.com.cn/extended-syntax/)
HTML
这是html格式脚注内容<sup id="ref1"><a href="#note1">[3]</a></sup>
<div class="footnotes">
<hr>
<p id="note1">[1] <a href="https://markdown.com.cn/basic-syntax/" target="_blank">Markdown 基本语法</a> <a href="#ref1">↩</a></p>
<p id="note2">[2] <a href="https://markdown.com.cn/extended-syntax/" target="_blank">Markdown 扩展语法</a> <a href="#ref2">↩</a></p>
<p id="note3">[3] 这是html格式脚注内容 <a href="#ref3">↩</a></p>
</div>
本文参考了 Markdown 官方教程 的基本语法[1] 和扩展语法[2]。 这是html脚注内容[3]
标题编号 #heading-ids
Markdown 跳转标题编号 #heading-ids
第一小节内容 #part-one
许多 Markdown 处理器支持标题的自定义 ID | 一些 Markdown 处理器会自动添加它们。添加自定义 ID 允许您直接链接到标题并使用 CSS 对其进行修改。要添加自定义标题 ID,请在与标题相同的行上用大括号括起该自定义 ID。
MARKDOWN
[回到顶部](#top)
[跳转到任务列表语法](#任务列表语法)
[点击跳转至上方标题](#heading-ids)
[点击跳转至第二小节](#第二小节内容-#part-two)
回到顶部
跳转到任务列表语法
点击跳转至上方标题
点击跳转至第二小节
链接到标题ID (#headid)
通过创建带有井号#和自定义标题 ID 的标准链接,可以链接到文件中具有自定义 ID 的标题。
MARKDOWN
[Heading IDs](#heading-ids)
其他网站可以通过将自定义标题ID添加到网页的完整URL(例如Heading IDs)来链接到标题。
定义列表
要创建定义列表,要在第一行上键入术语。在下一行,键入一个冒号,后跟一个空格和定义。
MARKDOWN
First Term
: This is the definition of the first term.
Second Term
: This is one definition of the second term.
: This is another definition of the second term.
First Term : This is the definition of the first term.
Second Term : This is one definition of the second term. : This is another definition of the second term.
第二小节内容 #part-two
MARKDOWN
[跳转第一小节](#第一小节内容-#part-one)
任务列表语法
任务列表可以创建带有复选框的项目列表。在支持任务列表的 Markdown 应用程序中,复选框将显示在内容旁边。
要创建任务列表,要在任务列表项之前添加破折号 - 和方括号 [ ],并在 [ ] 前面加上空格。要选择一个复选框,请在方括号[x]之间添加x
MARKDOWN
- [x] 充电
- [ ] eating
- [ ] 学习
- 充电
- eating
- 学习

