Markdown 是一种轻量级的「标记语言」。Markdown 语法的目标是:成为一种适用于网络的书写语言。Markdown 的语法简单,熟悉Markdown语法规则,事倍功半。
语法
- 插入图片如何定义图片的大小或比例?
-
使用img标签
使用如下语法
![图片名称](http://upload-images.jianshu.io/upload_images/1791560-21c37699a3bbddd1.jpg?imageMogr2/auto-orient/strip%7CimageView2/2/w/1240)
-
使用支持图片大小更改操作的编辑器
例如Mou,使用如下语法
![使用支持图片大小更改操作的 Mou 编辑器](http://ww4.sinaimg.cn/bmiddle/aa397b7fjw1dzplsgpdw5j.jpg =500x314)
- 标题
在行首插入 1 到 6 个 #,对应到标题 1 到 6 阶,例如:
# 这是 H1
## 这是 H2
###这是 H3
####这是 H4
#####这是 H5
###### 这是 H6
- 区块引用 Blockquotes
在每行的最前面加上 > :
> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
> consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
> Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
>
> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
> id sem consectetuer libero luctus adipiscing.
效果:
This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.
当然也可以在整个段落的第一行最前面加上 > :
> This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
> Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.
效果:
This is a blockquote with two paragraphs. Lorem ipsum dolor sit amet,
consectetuer adipiscing elit. Aliquam hendrerit mi posuere lectus.
Vestibulum enim wisi, viverra nec, fringilla in, laoreet vitae, risus.
Donec sit amet nisl. Aliquam semper ipsum sit amet velit. Suspendisse
id sem consectetuer libero luctus adipiscing.