Markdown语法
- Markdown是一种纯文本格式的标记语言。通过简单的标记语法,它可以使普通文本内容具有一定的格式,如今越来越多度博主喜欢写博客,如何优雅的写出好的文章使Markdown成为一种写作必备的工具,以下介绍了一些Markdown最常用的使用技巧。
1.标题
语法:
#一级标题
##二级标题
###三级标题
####四级标题
#####五级标题
######六级标题
一级标题
二级标题
三级标题
四级标题
五级标题
六级标题
2.字体
语法:
** hello world **
*hello world*
***hello world***
~~hello world~~
- 加粗的 hello world
- 斜体 hello world
- 斜体加粗 hello world
- 删除线
hello world
3.引用
语法:
>hello world
>>hello world
>>>hello world
hello world
hello world
hello world
4.分割线
语法:
---
----
***
*****
5.图片
语法:
Snip20190909_1.png
6.超链接
语法:
[百度](https://www.baidu.com)
[谷歌](https://www.google.com)
7.列表
语法:
- 列表内容
1. hello
2. hello world
+ 列表内容
* 列表内容
- 列表内容1
+ 列表内容2
* 列表内容3
- 列表内容11
+ 列表内容22
* 列表内容33
1. hello
- 列表内容
- hello
- hello world
- 列表内容
- 列表内容
- 列表内容1
- 列表内容2
- 列表内容3
- 列表内容11
- 列表内容22
- 列表内容33
- hello
8.表格
语法:
表头|表头|表头
---|:--:|---:
内容|内容|内容
内容|内容|内容
表头 | 表头 | 表头 |
---|---|---|
内容 | 内容 | 内容 |
内容 | 内容 | 内容 |
9.代码块
- 方式一
hello world
- 方式二
print('hello world')
10.流程图
st=>start: 开始
e=>end
op=>operation: Operation
cond=>condition: Yes or No?
st->op->cond
cond(yes)->e
cond(no)->op
网友评论