Markdown语法参考手册

Markdown 是一种轻量级标记语言,它允许人们使用易读易写的纯文本格式编写文档,Markdown文件的后缀名便是“.md”。

参考教程: https://markdown.com.cn/

基本语法

标题:
# H1
## H2
### H3
#### H4
##### H5
###### H6

粗体:
**bold text**

斜体:
*italicized text*

引用块:
> blockquote

有序列表:
1. First item
2. Second item
3. Third item

无序列表:
- First item
- Second item
- Third item

代码:
`code`

分割线:
---

链接:
[title](https://www.example.com)

图片: 
![image](https://www.example.gif)

扩展语法

代码块:

```python
def greet(name):
    print(f"Hello, {name}!")

greet("John")
```
表格:
| Syntax      | Description |
| ----------- | ----------- |
| Header      | Title       |
| Paragraph   | Text        |

脚注:
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
posted @ 2023-05-20 22:47  rustling  阅读(28)  评论(0编辑  收藏  举报