1. 标题
使用案例:
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 六级标题
最终结果如下:
一级标题
二级标题
三级标题
四级标题
五级标题
六级标题
2.文字修饰符
粗体修饰举例:**陌上花开,可缓缓归矣**
最终结果显示:陌上花开,可缓缓归矣
斜体修饰举例:*Five Hundred Mies*
最终结果显示:Five Hundred Mies
3.分隔符
分隔符举例:
Hello world!
-------------------------------------------------------------
Very good!
最终的显示:
Hello world!
Very good!
4.列表
列表分为两种:无序列表和有序列表
无序列表举例:
(切记序号与文本之间存在一个空格)
- Five Hundred Miles
- Right Here Waiting
- Long Long Journey
最终结果显示:
-
Five Hundred Miles
-
Right Here Waiting
-
Long Long Journey
有序列表举例:
(切记序号与文本之间存在一个空格)
1. Five Hundred Miles
1.1 Right Here Waiting
1.2 Long Long Journey
2.2 Only Time
最终结果显示:
- Five Hundred Miles
1.1 Right Here Waiting
1.2 Long Long Journey
- Only Time
5.插入使用
插入链接举例:[显示文本](链接地址)
[为什么要用Markdown写作?](https://zhuanlan.zhihu.com/p/22755240)
最终结果显示:
插入图片举例:


最终结果显示:

6.引用
引用举例:
> I will be right here waiting for you.
最终显示:
I will be right here waiting for you.
7.行内代码
代码引用
举例:`Hello World`
显示:Hello World
多段代码引用
举例:
\``` 这里使用转义字符进行转义
Hello World!
Hello World!!
Hello World!!!
\```
显示:
Hello World!
Hello World!!
Hello World!!!
8.表格
Item | Number | Price |
---|---|---|
Pen | 2 | $12 |
Paper | 3 | $ 3 |
:------ | 左对齐 | |
:------: | 居中对齐 | |
-------: | 右对齐 |
默认左对齐
9.学习意见
-
指令无须强记,用多了自然就熟练
-
Markdown还支持html语法,具有更多强大的功能,包括文本高亮和居中对齐等操作
-
如果有不懂的就查看Markdown语法手册
网友评论