md语法.md
标题
# 一级标题
## 二级标题
### 三级标题
......
字体
*斜体*
_斜体_
**粗体**
__粗体__
***粗斜体***
___粗斜体___
~~删除线~~
分割线
***
---
[^脚注]
文本颜色
<font color="red">红色字体</font>
<font color="green">绿色字体</font>
<font color="blue">蓝色字体</font>
<font face="黑体">黑体字</font>
<font size=5>5号字</font>
<font color="red" face="黑体" size=5>别犹豫了!点赞吧!</font>
<mark>高亮显示</mark>
<table><tr><td bgcolor="yellow">搞点颜色</td></tr></table>
文本注音
<ruby>饕餮 <rt>tāo tiè</rt></ruby>
下划线
<u>下划线</u>
无序列表
- 无序列表
* 无序列表
+ 无序列表
有序列表
1. 第一项
2. 第二项
3. 第三项
嵌套列表(子列表前加4个空格)
- 第一级
- 第二级
区块引用
> 外层区块
> > 第一层区块
> > > 第二层区块
片段代码块
`hello World`
代码块
```python
print('Hello World')
```
公式块
$y=x^2+1$
$$y=x^2+1$$
添加图片

<img src="https链接" width="400" height="192" div align=center>
添加表格
| 左对齐 | 右对齐 | 居中对齐 |
| :-----| ----: | :----: |
| 单元格 | 单元格 | 单元格 |
| 单元格 | 单元格 | 单元格 |
添加链接
这是二哥的主页: [二哥不像程序员](https://链接)
横向流程图
```mermaid
graph LR
A[方形] -->B(圆角)
B --> C{条件a}
C -->|a=1| D[结果1]
C -->|a=2| E[结果2]
F[横向流程图]
```
纵向流程图
```mermaid
graph TD
A[方形] --> B(圆角)
B --> C{条件a}
C --> |a=1| D[结果1]
C --> |a=2| E[结果2]
F[竖向流程图]
```
纵向标准流程图
```mermaid
flowchat
st=>start: 开始框
op=>operation: 处理框
cond=>condition: 判断框(是或否?)
sub1=>subroutine: 子流程
io=>inputoutput: 输入输出框
e=>end: 结束框
st->op->cond
cond(yes)->io->e
cond(no)->sub1(right)->op
```
横向标准流程图
```mermaid
flowchat
st=>start: 开始框
op=>operation: 处理框
cond=>condition: 判断框(是或否?)
sub1=>subroutine: 子流程
io=>inputoutput: 输入输出框
e=>end: 结束框
st(right)->op(right)->cond
cond(yes)->io(bottom)->e
cond(no)->sub1(right)->op
```
甘特图
```mermaid
%% 语法示例
gantt
dateFormat YYYY-MM-DD
title 软件开发甘特图
section 设计
需求:done, des1, 2021-09-01,2021-09-03
原型:active, des2, 2021-09-05, 2d
UI设计:des3, after des2, 5d
未来任务:des4, after des3, 5d
section 开发
准备:crit, done, 2021-09-01,24h
设计框架:crit, done, after des2, 2d
开发:crit, active, 3d
补充:crit, 5d
section 测试
功能测试:active, a1, after des3, 3d
压力测试:after a1 , 20h
测试报告: 48h
```
UML时序图
```mermaid
sequenceDiagram
二哥->>女神: 你好吗?(请求)
Note right of 女神: 女神的答复
Note left of 二哥: 二哥在等待回复
女神-->>二哥: 我很好,什么事?(响应)
二哥->>女神: 今天天气不错
女神-->>二哥:下雨呢,滚!
```
UML时序图
```mermaid
%% 时序图例子,-> 直线,-->虚线,->>实线箭头
sequenceDiagram
participant 二哥
participant 三哥
二哥->>四弟: 中午吃啥?
loop 吃啥呢?
三哥->三哥: *****
end
Note right of
二哥: 烤肉 火锅 <br/>麻辣烫...
三哥->>二哥: 你说吃啥!
二哥-->>三哥:你想
四弟->>三哥: 三哥吃啥?
三哥-->>四弟: 不知道!
```