Markdown基本语法
1.标题
代码:
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 最小只有六级标题
效果:
一级标题
二级标题
三级标题
四级标题
五级标题
最小只有六级标题
2.加粗
代码:
**加粗**
效果:
加粗
3.斜体
代码:
*倾斜*
效果:
倾斜
4.高亮
代码:
==高亮==
效果:
高亮
5.上标
代码:
2^2^
效果:
22
6.下标
代码:
H2o
效果:
H2o
7.代码引用(>式)
代码:
> hello markdown!
> > hello markdown!
效果:
hello markdown!
hello markdown!
8.代码引用(```式)
代码:
```python
print('hello word!')
```
效果:
print('hello word!')
9.代码引入(`式)
代码:
`print('hello word')`
效果:
print('hello word')
10.插入链接(链接显示)
代码:
<https://www.baidu.com>
效果:
11.插入链接(链接描述显示)
代码:
[百度首页](https://www.baidu.com "百度首页")
效果:
12.插入图片(链接)
代码:

效果:
13.插入图片(图片路径)
- 绝对路径:.md文本同目录下图片的名字,如
数据类型总结-搞笑结束.jpg?x-oss-process=style/watermark
- 相对路径:图片在电脑中的路径地址,如
Users ickmacdesktop数据类型总结-搞笑结束.jpg?x-oss-process=style/watermark
代码:


效果:
14.有序列表
代码:
1. one
2. two
3. three
效果:
- one
- two
- three
15.无序排列
代码:
* one
* two
* three
效果:
- one
- two
- three
16.分割线
代码:
---
效果:
17.表格而且第二行必须得有,并且第二行的冒号代表对齐格式,分别为居中;右对齐;左对齐;
代码:
| name | age | sex |
| :--: | :--- | ---: |
| fack | 15 | 男 |
| tony | 16 | 男 |
效果:
name | age | sex |
---|---|---|
fack | 15 | 男 |
tony | 16 | 男 |
18.数学公式(行内嵌)
代码:
内嵌数学公式$sum_{i=1}^{10}f(i)\,\, ext{thanks}$
效果:
内嵌数学公式∑10i=1f(i)thanks
19.数学公式(块状)
代码:
$$
sum_{i=1}^{10}f(i)\,\, ext{thanks}
$$
效果:
[sum_{i=1}^{10}f(i)\,\, ext{thanks}
]