Markdown 的创建者编写的原始指南 Daring Fireball: Markdown
本文主要摘自: Markdown 语法速查表 | Markdown 官方教程
基本语法
标题 几个#就几级标题,最多可以一直到六级标题
# H1 一级标题
## H2 二级标题
### H3 三级标题
**bold text 粗体**
*italicized text 斜体*
> blockquote 引用块
有序列表
1. First item 项目1
2. Second item 项目2
3. Third item 项目3
无序列表
- First item
- Second item
- Third item
`code 代码`
分割线
---
链接
[title](https://www.example.com)
图片
![alt text](image.jpg)
注:Alt text(alternative text替代文本)
扩展语法
表格:
| Syntax | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text |
代码块:
```
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
```
脚注
Here's a sentence with a footnote. [^1]
[^1]: This is the footnote.
标题编号
### My Great Heading {#custom-id}
定义列表
term
: definition
删除线
~~The world is flat.~~
任务列表
- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media