别看了,直接去官网看,下面是自我练习
1.1.1. 标题:
使用的#符号的数量应与标题级别相对应
1.1.2. 段落:
I really like using MarkDown1.
I think i will use it from now on2.
1.1.3. 粗体:
两个星号或下划线
I like bold I like bold too Love is Bold
1.1.4. 斜体:
一个星号或下划线
I like bold
I like bold too
Love is Bold
1.1.5. 粗体+斜体
添加三个星号或下划线
I like bold
I like bold too
Love is Bold
1.1.6. 块引用
在段落前面添加一个>
Dorothy followed her through many of the beautiful rooms in her castle.
1.1.7. 具有多个段落的块引用
段落之间的空白行上添加一个>
Dorothy followed her through many of the beautiful rooms in her castle.
The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood
1.1.8. 嵌套块引用
在要嵌套的段落前面添加一个>>
Dorothy followed her through many of the beautiful rooms in her castle.
The Witch bade her clean the pots and kettles and sweep the floor and keep the fire fed with wood.
1.1.9. 具有其他元素的块引用
The quarterly results look great!
- Revenue was off the chart.
- Profits were higher than ever.
Everything is going according to plan.
1.1.10. 有序列表
添加数字和句点。数字不必按数字顺序排列,但列表应以数字开头
- first item
- second item
- sub item 1
- sub item 2
- third item
1.1.11. 无序列表 - * +
添加破折号(-),星号(*)或加号(+)。缩进一个或多个项目以创建嵌套列表
- first item
- second item
- third item
- sub item 1
- sub item 2
- sub item 3
1.1.12. 在列表中添加元素
将该元素缩进四个空格或一个制表符
-
This is the first list item.
-
Here's the second list item.
I need to add another paragraph below the second list item.
1.1.13. 列表中添加块引用
-
And here's the third list item.
-
This is the first list item.
-
Here's the second list item.
A blockquote would look great below the second list item.
-
And here's the third list item.
1.1.14. 列表中添加代码块
代码块通常缩进四个空格或一个制表符。当它们在列表中时,将它们缩进八个空格或两个选项卡。
-
Open the file.
-
Find the following code block on line 21:
<html> <head> <title>Test</title> </head> </html> -
Update the title to match the name of your website.
1.1.15. 列表中添加图片
-
Open the file containing the Linux mascot.
-
Marvel at its beauty.

-
Close the file.
1.1.16. 代码
括在勾号(``)中
At the command prompt, type nano
1.1.17. 转义刻度线
括在双刻度线(``)中来对其进行转义
Use `code` in your Markdown file.
1.1.18. 代码块
要创建代码块,请在代码块的每一行缩进至少四个空格或一个制表符。
<html>
<head>
</head>
</html>
1.1.19. 水平线
要创建水平线***,请单独在一行上使用三个或更多的星号(),破折号(---)或下划线(___)。
1.1.20. 链接
要创建链接,请将链接文本括在方括号(例如[Duck Duck Go])中,然后立即在后面加上括号(例如(duckduckgo.com))中的URL 。
My favorite search engine is Duck Duck Go.
1.1.21. 添加标题
您可以选择为链接添加标题。当用户将鼠标悬停在链接上时,这将显示为工具提示。要添加标题,请将其括在URL后面的括号中。
My favorite search engine is Duck Duck Go.
1.1.22. 网址和电子邮件地址
markdown.p2hp.com
fake@example.com
1.1.23. 格式化链接
为了强调链接,请在方括号和括号之前和之后添加星号。
I love supporting the EFF.
This is the Markdown Guide.
1.1.24. 参考样式链接
引用样式链接是一种特殊的链接,它使URL在Markdown中更易于显示和阅读。引用样式的链接分为两部分:与文本保持内联的部分以及在文件中其他位置存储的部分,以使文本易于阅读
In a hole in the ground there lived a hobbit. Not a nasty, dirty, wet hole, filled with the ends of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to eat: it was a hobbit-hole, and that means comfort.
In a hole in the ground there lived a hobbit. Not a nasty, dirty, wet hole, filled with the ends of worms and an oozy smell, nor yet a dry, bare, sandy hole with nothing in it to sit down on or to eat: it was a hobbit-hole, and that means comfort.
1.1.25. 图片
要添加图像,请添加感叹号!,然后在方括号中添加替代文本,并在括号中添加图像资源的路径或URL。您可以选择在括号中的URL之后添加标题。

1.1.26. 链接图像
要向图像添加链接,请将图像的Markdown括在方括号中,然后在括号中添加链接。
1.1.27. 转义字符
在字符前面添加反斜杠\。
* Without the backslash, this would be a bullet in an unordered list.
扩展语法
使用三个或多个连字符(---)创建每列的标题,并使用管道(|)分隔每列
| syntax | Description |
|---|---|
| Header | Title |
| Paragraph | Text |
对齐&格式化表格中的文字
您可以通过:在标题行内的连字符的左侧,右侧或两侧添加一个冒号,以使列中的文本左,右或居中对齐。
| syntax | Description | Other |
|---|---|---|
| Header | Title | a |
| Paragraph | Text | b |
在表中转义管道字符
使用表格的HTML字符代码(|)在表中显示竖线|字符。
| syntax | Description | Other |
|---|---|---|
| Header | Title | a |
| Paragraph | Text | |b| |
围栏代码块
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
语法高亮
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
脚注
脚注与标示直接可以跳转 Here's a simple footnote, and here's a longer one.3
标题编号
My Great Heading {#custom-id}
定义清单(不起作用,vscode上正常)
第一行上键入术语。下一行,键入一个冒号后跟一个空格和定义
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.
删除线
~在单词前后使用两个波浪号
The world is flat. We now know that the world is round.
任务清单
添加破折号(-)和方括号,并在方括号前面加上一个空格。要选择一个复选框,请在方括号之间添加x
- Write the press release
- Update the website
- Contact the media
禁用自动URL链接
默认会给url添加链接: www.baidu.com
http://www.example.com
)