概览
宗旨
纯文本,易读易写;成为一种适用于网络的书写语言
仅仅是涵盖纯文本的范围
元素
效果 | 文本表示(不要直接引用,有\转义符) |
---|---|
目录 | [TOC] |
& | & |
< | < |
xx | *xx* |
# 一级标题 | # 一级标题 |
## 二级标题 | ## 二级标题 |
区块引用
区块引用0
区块引用1
区块引用2
> 区块引用0
> > 区块引用1
> > > 区块引用2
区块引用0
区块引用1
区块引用2
HTML
| ![]() |
<table>
<tr>
<td width="80%">
<table>
<tr>
<td align="right">姓名</td>
<td align="left">xxx</td>
</tr>
<tr>
<td align="right">性别</td>
<td align="left">xxx</td>
</tr>
<tr>
<td align="right">电话</td>
<td align="left">xxxx</td>
</tr>
<tr>
<td align="right">邮箱</td>
<td align="left">xxxxxxx@xxx</td>
</tr>
</table>
</td>
<td width="20%" height="100%">
<img src="url" alt="我的照片" />
</td>
</tr>
</table>
表格
学号 | 姓名 | 分数 |
---|---|---|
小明 | 男 | 75 |
小红 | 女 | 79 |
小陆 | 男 | 92 |
学号 | 姓名 | 分数 |
---|---|---|
小明 | 男 | 75 |
小红 | 女 | 79 |
小陆 | 男 | 92 |
| 学号 | 姓名 | 分数 |
| ---- | ---- | ---- |
| 小明 | 男 | 75 |
| 小红 | 女 | 79 |
| 小陆 | 男 | 92 |
学号|姓名|分数
:-|:-:|-:
小明|男|75
小红|女|79
小陆|男|92
[注释] # ":-是为列指定向左对齐方向 表格结构:表头,表头主体分隔符,主体"
无须列表
-
无须列表
-
无须列表
- 无须列表
-
* 无须列表
- 无须列表
+ 无须列表
有序列表
- 有序列表
- 有序列表
- 有序列表
1.有序列表
2. 有序列表
3. 有序列表
有序列表的序列号可随意写,markdown会自动归序
TODO 列表
近期任务安排:
- 整理Markdown手册
- 整理VSCode文档
- Python进阶
- 优化架构
- 学习K8S
- 学习容器
**近期任务安排**:
- [x] 整理Markdown手册
- [ ] 整理VSCode文档
- [ ] Python进阶
- [ ] 优化架构
- [ ] 学习K8S
- [ ] 学习容器
注释
[注释]: input_link_url_here "title(optional)"
[//]: input_link_url_here "title(optional)"
<!--HTML Annotation-->
注脚
使用 Markdown1可以效率的书写文档, 直接转换成 HTML2, 你可以使用简书或者支持Markdown的编辑器进行书写。
使用 Markdown[^1]可以效率的书写文档, 直接转换成 HTML[^2], 你可以使用简书或者支持Markdown的编辑器进行书写。
[^1]:Markdown是一种纯文本标记语言
[^2]:HyperText Markup Language 超文本标记语言
超链接
欢迎查看风音素Blog
欢迎查看[风音素Blog](https://download.youkuaiyun.com/download/weixin_44124824/13606028)
超链接

参考式
This is an example reference-style link.
Then, anywhere in the document, you define your link label like this, on a line by itself:
This is [an example][id] reference-style link.
Then, anywhere in the document, you define your link label like this, on a line by itself:
[id]: http://example.com/ "Optional Title Here"
数学公式
E = m c 2 E=mc^2 E=mc2
∑ i = 1 n a i = 0 \sum_{i=1}^n a_i=0 i=1∑nai=0
f ( x 1 , x x , … , x n ) = x 1 2 + x 2 2 + ⋯ + x n 2 f(x_1,x_x,\ldots,x_n) = x_1^2 + x_2^2 + \cdots + x_n^2 f(x1,xx,…,xn)=x12+x22+⋯+xn2
∑ k = 0 j − 1 γ ^ k j z k \sum^{j-1}_{k=0}{\widehat{\gamma}_{kj} z_k} k=0∑j−1γ kjzk
$E=mc^2$ //行内公式$xx$
//整行公式$$xx$$
$$\sum_{i=1}^n a_i=0$$
$$f(x_1,x_x,\ldots,x_n) = x_1^2 + x_2^2 + \cdots + x_n^2 $$
$$\sum^{j-1}_{k=0}{\widehat{\gamma}_{kj} z_k}$$
Typora无效,记得开启行公式的偏好设置,因为行内公式属于LaTeX扩展语法
代码块
#include <stdio.h>
int main(void)
{
printf("Hello world\n");
}
```c
#include <stdio.h>
int main(void)
{
printf("Hello world\n");
}
```
时序图语法
```mermaid
sequenceDiagram
Andrew->>China: Says Hello
Note right of China: China thinks\nabout it
China-->>Andrew: How are you?
Andrew->>China: I am good thanks!
```
participant C
participant D
participant A
A->B: Normal line
B-->C: Dashed line
C->>D: Open arrow
D-->>A: Dashed open arrow
Note left of A: Note to A
Note over A, B: Note over A and B
流程图
st=>start: Start
e=>end: End
接收用户名和密码=>operation: 接收用户名和密码
使用用户名查询数据库=>operation: 使用用户名查询数据库
数据库中是否有数据=>condition: 数据库中是否有数据?
走登录逻辑=>operation: 走登录逻辑
走注册逻辑=>operation: 走注册逻辑
密码是否正确=>condition: 密码是否正确?
把用户名和密码写入数据库=>inputoutput: 把用户名和密码写入数据库
st->接收用户名和密码->使用用户名查询数据库->数据库中是否有数据
数据库中是否有数据(yes)->走登录逻辑->密码是否正确
数据库中是否有数据(no)->走注册逻辑->把用户名和密码写入数据库->e
密码是否正确(yes)->e
密码是否正确(no,down)->接收用户名和密码``
流程图的markdown语法
语法关键词
start
,end
, 表示程序的开始与结束operation
, 表示程序的处理块subroutine
, 表示子程序块condition
, 表示程序的条件判断inputoutput
, 表示程序的出入输出right
,left
, 表示箭头在当前模块上的起点(默认箭头从下端开始)yes
,no
, 表示condition判断的分支(其可以和right,left同时使用)
流程图的语法大体分为两部分:
-
前面部分用来定义流程图元素:
tag=>type: content:>url
tag
是流程图中的标签,在第二段连接元素时会用到。名称可以任意,一般为流程的英文缩写和数字的组合。type
用来确定标签的类型,=>
后面表示类型。由于标签的名称可以任意指定,所以要依赖type
来确定标签的类型- 标签有6种类型:
start``end``operation``subroutine``condition``inputoutput
content
是流程图文本框中的描述内容,:
后面表示内容,中英文均可。特别注意,冒号与文本之间一定要有个空格url
是一个连接,与框框中的文本相绑定,:>
后面就是对应的url
链接,点击文本时可以通过链接跳转到url
指定页面
-
后面部分用来连接流程图元素,指定流程图的执行走向。
- 使用
->
来连接两个元素 - 对于
condition
类型,有yes
和no
两个分支,如示例中的cond(yes)和cond(no) - 每个元素可以制定分支走向,默认向下,也可以用
right
指向右边,如示例中sub1(right)。
- 使用
👉原文指引