Markdown语法整理

Posted by Peinan on May 17, 2019

在Github Pages上我们需要采用Markdown来发表posts


一、字体

1
2
3
*italic*
**bold**
~~delete~~

italic

bold

delete


二、标题

1
2
3
4
5
6
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 六级标题

一级标题

二级标题

三级标题

四级标题

五级标题
六级标题

三、链接

1
2
[Google Here](https://www.google.com)
[Baidu Here](https://www.baidu.com)

Google Here

Baidu Here


四、列表

1
2
3
4
5
6
7
8
9
- Label 1
- Label 2
- Label 3
- Label 4
- Label 5

1. Label 6
1. Label 7
1. Label 8
  • Label 1
  • Label 2
  • Label 3
  • Label 4
  • Label 5
  1. Label 6
  2. Label 7
  3. Label 8

五、引用

1
2
> Reference
>> Reference in reference

Reference

Reference in reference


六、图片

1
![Octocat](https://github.githubassets.com/images/modules/logos_page/GitHub-Mark.png)

Octocat


七、代码

1
2
3
4
5
6
7
```c
#include <stdio.h>
int main(){
printf("Hello World!");
return 0;
}
```(only ``` here)
1
2
3
4
5
#include <stdio.h>
int main(){
printf("Hello World!");
return 0;
}