2024-05-25 19:38:00 +08:00
|
|
|
|
# Markdown 基本语法
|
|
|
|
|
|
|
|
|
|
## 标题
|
|
|
|
|
|
2024-05-25 19:37:31 +08:00
|
|
|
|
使用#号标记,可以表示1-6级标题, 随#的个数递增,一级标题字号最大,六级标题字号最小
|
2024-05-25 19:38:00 +08:00
|
|
|
|
列如:
|
|
|
|
|
|
2024-05-26 07:48:30 +08:00
|
|
|
|
```
|
2024-05-25 19:38:00 +08:00
|
|
|
|
# 一级标题
|
|
|
|
|
## 一级标题
|
|
|
|
|
### 三级标题
|
|
|
|
|
#### 四级标题
|
|
|
|
|
##### 五级标题
|
|
|
|
|
###### 六级标题
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
|
2024-05-25 19:37:31 +08:00
|
|
|
|
## 字体
|
2024-05-25 19:38:00 +08:00
|
|
|
|
|
|
|
|
|
- 粗体
|
|
|
|
|
|
|
|
|
|
**粗体**
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
**粗体**
|
|
|
|
|
```
|
|
|
|
|
|
|
|
|
|
- 斜体
|
|
|
|
|
|
|
|
|
|
- 删除
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
2024-05-26 07:48:30 +08:00
|
|
|
|
## 链接
|
2024-05-25 19:37:31 +08:00
|
|
|
|
|
2024-05-26 07:48:30 +08:00
|
|
|
|
```
|
|
|
|
|
[链接名字](链接地址)
|
|
|
|
|
```
|
2024-05-25 19:38:00 +08:00
|
|
|
|
|
|
|
|
|
## 图片
|
|
|
|
|
|
2024-05-26 07:48:30 +08:00
|
|
|
|
```
|
|
|
|
|
[图片描述](图片地址)
|
|
|
|
|
```
|
2024-05-25 19:38:00 +08:00
|
|
|
|
|
2024-05-26 07:48:30 +08:00
|
|
|
|
## 列表
|
2024-05-25 19:38:00 +08:00
|
|
|
|
|
2024-05-26 07:48:30 +08:00
|
|
|
|
- 无序列表
|
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
* 刘备
|
|
|
|
|
+ 张飞
|
|
|
|
|
- 关羽
|
|
|
|
|
```
|
|
|
|
|
- 有序列表
|
|
|
|
|
```
|
|
|
|
|
1. 刘备
|
|
|
|
|
2. 张飞
|
|
|
|
|
```
|
2024-05-25 19:38:00 +08:00
|
|
|
|
|
|
|
|
|
## 分割线
|
2024-05-26 07:48:30 +08:00
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
***
|
|
|
|
|
---
|
|
|
|
|
```
|
2024-05-25 19:38:00 +08:00
|
|
|
|
## 删除线
|
2024-05-26 07:48:30 +08:00
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
~~刘备~~
|
|
|
|
|
```
|
2024-05-25 19:38:00 +08:00
|
|
|
|
## 下划线
|
2024-05-26 07:48:30 +08:00
|
|
|
|
|
|
|
|
|
```
|
|
|
|
|
<u>文本</u>
|
|
|
|
|
```
|
|
|
|
|
|
2024-05-25 19:38:00 +08:00
|
|
|
|
## 代码块
|
|
|
|
|
|
2024-05-26 07:48:30 +08:00
|
|
|
|
如果在一行内需要引用代码,只需要用反引号`引起来就好了。
|
2024-05-25 19:38:00 +08:00
|
|
|
|
|
2024-05-26 07:48:30 +08:00
|
|
|
|
```java
|
|
|
|
|
print("hello world")
|
|
|
|
|
```
|
2024-05-25 19:38:00 +08:00
|
|
|
|
|
2024-05-26 07:48:30 +08:00
|
|
|
|
## 表格
|
2024-05-25 19:38:00 +08:00
|
|
|
|
|
2024-05-26 07:48:30 +08:00
|
|
|
|
表格使用|来分割不同的单元格,使用-来分隔表头和其他行
|
2024-05-25 19:38:00 +08:00
|
|
|
|
|
2024-05-26 07:48:30 +08:00
|
|
|
|
```
|
|
|
|
|
|项目 | 价格 | 数量 |
|
|
|
|
|
|------------|----------|-----------|
|
|
|
|
|
| 计算机 | \$1600 | 5 |
|
|
|
|
|
| 手机 | \$12 | 12 |
|
|
|
|
|
| 管线 | \$1 | 234 |
|
2024-05-25 19:38:00 +08:00
|
|
|
|
|
2024-05-26 07:48:30 +08:00
|
|
|
|
```
|
2024-05-25 19:38:00 +08:00
|
|
|
|
|
2024-05-26 07:48:30 +08:00
|
|
|
|
## 脚注
|
|
|
|
|
在需要添加脚注的文本后加上[^脚注标识],然后在文档的任意位置定义脚注内容
|
|
|
|
|
```
|
|
|
|
|
这是一个列句[^1]
|
|
|
|
|
[^1]: 脚注内容
|
|
|
|
|
```
|
2024-05-25 19:38:00 +08:00
|
|
|
|
|
2024-05-25 19:37:31 +08:00
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|