Markdown

Markdown语法简要

2018-11-05  本文已影响33人  fanlehai

作者 | 2018年11月06日16:29:56

基本语法

元素 markdown语法
标题 # H1
## H2
### H3
粗体 **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-1ed1cf-1541494760987)]

扩展语法

元素 markdown语法
表格 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.
标题ID ### My Great Heading {#custom-id}
删除线 ~~The world is flat.~~
任务列表 - [x] Write the press release
- [ ] Update the website
- [ ] Contact the media

参考链接
上一篇 下一篇

猜你喜欢

热点阅读