# MarkDown
MarkDown的多种实现:
- [Markdown](http://daringfireball.net/projects/markdown/)
- [PHP Markdown](https://michelf.ca/projects/php-markdown/), [PHP Markdown Extra](https://michelf.ca/projects/php-markdown/extra/)
- [CommonMark](http://commonmark.org/)
- [GitHub-flavored Markdown](https://github.github.com/gfm/)
## 一、标题
Markdown 支持两种样式的标题,[Setext](http://docutils.sourceforge.net/mirror/setext.html) 和 [atx](http://www.aaronsw.com/2002/atx/)。
Setext 样式的标题使用等号“下划线”(对于第一级 标题)和破折号(用于二级标题)
这是一级标题
===========
这是二级标题
-----------
任意数量的下划线 `=` 或 `-` 都可以使用。
atx 样式的标题在行首使用 1-6 个`#`, 对应于标题级别 1-6。
# 这是一级标题
## 这是二级标题
### 这是三级标题
#### 这是四级标题
##### 这是五级标题
###### 这是六级标题
## 二、字体
**这是加粗的文字**
__这是加粗的文字__
*这是斜体的文字*
_这是斜体的文字_
***这是斜体加粗的文字***
___这是斜体加粗的文字___
~~这是加删除线的文字~~
## 三、块引用
>这是块引用的内容
>>这是块引用的内容
>>>这是块引用的内容
块引用可以包含其他 Markdown 元素,包括标题、列表、 和代码块
> ## This is a header.
>
> 1. This is the first list item.
> 2. This is the second list item.
>
> Here's some example code:
>
> return shell_exec("echo $input | $markdown_script");
## 四、分割线
三个或者三个以上的 - 或者 * 都可以,注意分割线前要有空行。
---
----
****
***
* * *
## 五、图片

给图片增加链接,请将图像的Markdown 括在方括号中,然后将链接添加在圆括号中。
[](http://baidu.com)
引用样式的图片
![Alt text][pic_id]
[pic_id]: http://www.baidu.com/img/bdlogo.png "Title文本"
Markdown 不能指定图像的尺寸,如果需要的话,可以使用常规的HTML标签。
## 六、超链接
Markdown 支持两种样式的链接:内联和引用。
### 内联链接
[Alt文本](http://baidu.com "Title文本")
### 引用样式链
引用样式链接使用第二组方括号,链接定义名称由字母、数字、空格和标点符号,不区分大小写。
[Alt文本][id]
定义链接标签:
[id]: http://example.com/ "Title文本"
隐式链接名称允许省略链接定义名称
[Google][]
定义链接标签:
[Google]: http://google.com/ "Title文本"
### 自动链接
## 七、列表
### 无序列表
- 列表内容
+ 列表内容
* 列表内容
### 有序列表
1. 列表内容
2. 列表内容
3. 列表内容
### 列表嵌套
- 一级无序列表内容
- 二级无序列表内容
- 二级无序列表内容
- 二级无序列表内容
- 三级无序列表内容
1. 一级无序列表内容
1. 二级无序列表内容
2. 二级无序列表内容
3. 二级无序列表内容
1. 三级无序列表内容
## 八、表格
我是表头1|我是表头2|我是表头3|我是表头4
----|:---|:--:|---:
内容1|内容2|内容3|内容4
默认|居左|居中|居右
```
第二行分割表头和内容。
- 有一个就行,为了对齐,多加了几个
文字默认居左,":---"表示居左
-两边加:表示文字居中
-右边加:表示文字居右
```
## 九、代码
### 单行代码
`print('"Hello World!")`
代码范围中包含文本反引号字符
``There is a literal backtick (`) here.``
`` `cmd` ``
### 多行代码
基本语法的代码块,每一行缩进至少 4 个空格或 1 个制表符。
This is a code block.
扩展语法代码块,以包含三个或更多波浪号 `~` 字符或反引号字符 `` ` `` 的行开始,并以第一个具有相同数量波浪号 ~ 的行结束。
```c
#include
int main(void){
printf("Hello World!\n");
return 0;
}
```
## 十、代办列表
- [ ] 计划任务
- [x] 完成任务
## 十一、反斜杠转义
下列字符可以通过使用反斜杠字符从而达到转义目的。:
| Character | Name |
| --------- | ------------------------------------------------------------ |
| \ | backslash |
| ` | backtick (see also [escaping backticks in code](https://markdown.com.cn/basic-syntax/escaping-characters.html#escaping-backticks)) |
| * | asterisk |
| _ | underscore |
| { } | curly braces |
| [ ] | brackets |
| ( ) | parentheses |
| # | pound sign |
| + | plus sign |
| - | minus sign (hyphen) |
| . | dot |
| ! | exclamation mark |
| \| | pipe (see also [escaping pipe in tables](https://markdown.com.cn/extended-syntax/escaping-pipe-characters-in-tables.html)) |
## 十二、其他
### 居中显示
居中显示
### 两个冒号被解析为 emoj
`22/11/3 15:28:02`