Markdown语法
目录
- 目录
- 1. Markdown标题语法
- 2. Markdown扩展语法
1. Markdown标题语法
.md 文件为 Markdown 文件
Markdown中文网
1.1. Markdown标题语法
# Heading level 1Heading level 1
## Heading level 2Heading level 2
### Heading level 3Heading level 3
#### Heading level 4Heading level 4
##### Heading level 5Heading level 5
###### Heading level 6Heading level 6
1.2. Markdown段落语法
I really like using MarkdownI really like using Markdown
1.3. Markdown换行语法
This is the first line. And this is the second line.This is the first line.
And this is the second line.
This is the first line.<br> And this is the second line.This is the first line.
And this is the second line.
1.4. Markdown强调语法
1.4.1. 粗体
I just like **bold text**I just like bold text
1.4.2. 斜体
Italicized text is the *cat's meow*Italicized text is the cat's meow
1.4.3. 粗体+斜体
This is a ***really important*** thingThis is a really important thing
1.5. Markdown引用语法
引用可以和引用,列表等嵌套使用。
> Dorothy followed her through many of the beautiful > rooms in her castle.Dorothy followed her through many of the beautiful
rooms in her castle.
1.6. Markdown列表语法
有序列表,无序列表,引用可相互或自身嵌套使用。
1.6.1. 有序列表
1. First 2. Second 3. Third
- First
- Second
- Third
要创建有序列表,请在每个列表项前添加数字并紧跟一个英文句点。数字不必按数学顺序排列,但是列表应当以数字 1 起始。
1. First 8. Second 5. Third
- First
- Second
- Third
1.6.2. 无序列表
-,*,+,均可
* First * Second * Third
- First
- Second
- Third
1.7. Markdown代码语法
1.7.1. 代码
At the command prompt, type `nano`At the command prompt, type
nano
1.7.2. 转移反引号
``Use `code` in your Markdown file.``Use `code` in your Markdown file.
1.7.3. 代码块
```python print("Hello world!") ```print("Hello world!")
1.8. Markdown分割线语法
*** ---
1.9. Markdown链接语法
1.9.1. 超链接
[超链接显示名](超链接地址 "超链接title")这是一个链接 [Markdown语法](https://markdown.com.cn "最好的markdown教程")。
1.9.2. 网址和Email地址
<https://markdown.com.cn> <fake@example.com>
1.9.3. 引用链接
[example][label] [label]: https://markdown.com.cn (title)
1.9.4. 图片链接

1.10. Markdown转义语法
支持反斜杠转义(\)
特殊字符自动转义
< &< &
1.11. Markdwon内嵌HTML标签
对于 Markdown 涵盖范围之外的标签,都可以直接在文件里面用 HTML 本身。如需使用 HTML,不需要额外标注这是 HTML 或是 Markdown,只需 HTML 标签添加到 Markdown 文本中即可。
2. Markdown扩展语法
2.1. Markdown表格
|Syntax |Description| |----------|-----------| |Header |Title | |Paragraph |Text |
Syntax Description Header Title Paragraph Text 对齐
| Syntax | Description | Test Text | | :--- | :----: | ---: | | Header | Title | Here's this | | Paragraph | Text | And more |
Syntax Description Test Text Header Title Here's this Paragraph Text And more 
2.2. Markdown脚注
Here's a simple footnote,[^1] and here's a longer one.[^bignote] [^1]: This is the first footnote. [^bignote]: Here's one with multiple paragraphs and code. Indent paragraphs to include them in the footnote. `{ my code }` Add as many paragraphs as you like.
2.3. Markdown标题编号
### My Great Heading {#custom-id}My Great Heading
2.3.1. 链接到标题id
[custom-id](#custom-id)
2.4. Markdown定义列表
一些Markdown处理器允许您创建术语及其对应定义的定义列表。要创建定义列表,请在第一行上键入术语。在下一行,键入一个冒号,后跟一个空格和定义
First Term : line one Second Term : line one : line two
- First Term
- line one
Second Term- line one
- line two
2.5. Markdown删除线
~~删除线~~
删除线
2.6. Markdown任务列表
- [x] 1 - [ ] 2 - [ ] 3
2.7. Markdown使用Emoji表情
去露营了! :tent: 很快回来。 真好笑! :joy:去露营了! ⛺ 很快回来。
真好笑! 😂
2.8. 禁用网址链接
`http://www.example.com`
http://www.example.com

 
                
            
         浙公网安备 33010602011771号
浙公网安备 33010602011771号