文字标题
换行
强调
分割线
无序列表
插入图片
文字中强调其中片段
链接
制表
目录
添加代码片段
文字标题:
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 六级标题
效果:
一级标题
二级标题
三级标题
四级标题
五级标题
六级标题
换行:
- 再要换行的最后加
</br>
- 或者在要换行的最后加两个空格
强调模块(不一定叫这个名字,具体的忘了)
>模块渲染以及使用
>>模块渲染以及使用,还可以嵌套使用
>就是这么用的
模块渲染以及使用
模块渲染以及使用,还可以嵌套使用
就是这么用的
分割线:
---
***
___
效果:
…好像效果一样
无序列表:
## 无序列表
- First item
- Second item
- Third item
- Fourth item
* First item
* Second item
* Third item
* Fourth item
+ First item
+ Second item
+ Third item
+ Fourth item
- First item
- Second item
- Third item
- Indented item
- Indented item
- Fourth item
效果:
无序列表
- First item
- Second item
- Third item
- Fourth item
- First item
- Second item
- Third item
- Fourth item
- First item
- Second item
- Third item
- Fourth item
- First item
- Second item
- Third item
- Indented item
- Indented item
- Fourth item
插入图片:
//在缓慢地括号中写图片的将对路径或绝对路径

效果:
文字段落中强调其中片段:
要将单词或短语表示为代码,请将其包裹在反引号 (`) 中 At the command prompt, type `nano`.
效果:
要将单词或短语表示为代码,请将其包裹在反引号 (`) 中
At the command prompt, type nano
.
链接:
链接文本放在中括号内,链接地址放在后面的括号中,链接title可选
超链接Markdown语法代码:[超链接显示名](超链接地址 "超链接title")
对应的HTML代码:<a href="超链接地址" title="超链接title">超链接显示名</a>
这是一个链接 [Markdown语法](https://markdown.com.cn)。
效果:
链接文本放在中括号内,链接地址放在后面的括号中,链接title可选
超链接Markdown语法代码:超链接显示名
对应的HTML代码:超链接显示名
这是一个链接 Markdown语法。
带格式化的链接
强调 链接, 在链接语法前后增加星号。 要将链接表示为代码,请在方括号中添加反引号。
I love supporting the **[EFF](https://eff.org)**.
This is the *[Markdown Guide](https://www.markdownguide.org)*.
See the section on [`code`](#code).
效果:
强调 链接, 在链接语法前后增加星号。 要将链接表示为代码,请在方括号中添加反引号。
I love supporting the EFF.
This is the Markdown Guide.
See the section on code
.
制表:
| Character | Name |
| --------- | --------- |
| \ | backslash |
| ` | backtick (see also escaping backticks in code) |
| * | asterisk |
| _ | underscore |
| {
} | curly braces |
| [ ] | brackets |
| ( ) | parentheses |
| # | pound sign |
| + | plus sign |
| - | minus sign (hyphen) |
| . | dot |
| ! | exclamation mark |
| | | pipe(see also escaping pipe in tables) |
效果:
Character | Name |
---|---|
\ | backslash |
` | backtick (see also escaping backticks in code) |
* | asterisk |
_ | underscore |
{ } | curly braces |
[ ] | brackets |
( ) | parentheses |
# | pound sign |
+ | plus sign |
- | minus sign (hyphen) |
. | dot |
! | exclamation mark |
目录:
如这一篇文章(pc端查看才有点击跳转效果,移动端无),点击目录中不同的标题,会自行跳转
做法:
[标题](#你添加的id)
如下图,为每个标题添加一个跳转的id地址
而这些地址对应的就是markdown
中要跳转的a标签
(锚点):
锚点语法:
<a id="你添加的id"></a>
添加代码片段
如下面添加javascript代码片段:
let http = require("http");
let server = http.createServer();
server.on("request", function (req, res) {
res.writeHead(200, {
//设置中文解析的编码为utf8
"Content-Type": "text/plain; charset=utf-8"
})
res.end("www.it666.com");
});
server.listen(3000);
用法:
只要将代码放在下面标签中即可,其他代码同理,只需要改变第一个```后面的标注即可