Markdown 语法
标题

在 Markdown 中,如果一段文字被定义为标题,只要在这段文字前加 # 号即可。
# 一级标题
## 二级标题
### 三级标题
以此类推,总共六级标题。
列表
在 Markdown 下,列表的显示只需要在文字前加上 - 或 * 即可变为无序列表,有序列表则直接在文字前加1. 2. 3. 符号要和文字之间加上一个字符的空格。
引用
引用一小段别处的句子
例如这样
只需要在文本前加入 > 这种尖括号(大于号)即可
图片与链接
插入链接与插入图片的语法很像,区别在一个 !号
图片为:![](){ImgCap}{/ImgCap}
链接为:[]()
Email <example@example.com> 或 <http://chenluois.com>
即:example@example.com 或 http://chenluois.com
可变图片:
A ![Resize icon][2] reference style image.
[2]: http://resizesafari.com/favicon.ico "Title"
粗体与斜体
Markdown 的粗体和斜体也非常简单,用两个 * 包含一段文本就是粗体的语法,用一个 * 包含一段文本就是斜体的语法。
例如:这里是粗体 这里是斜体
strong or strong ( Cmd + B )
emphasize or emphasize ( Cmd + I )
表格
例子如下:
Tables | Are | Cool
------------- | ------------- | -----
col 3 is | right-aligned | $1600
效果如下:
| Tables | Are | Cool |
|---|---|---|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
左对齐 、居中、右对齐:
:----------- | :-----------: | -----------:
| First Header | Second Header | Third Header |
|---|---|---|
| Left | Center | Right |
| Left | Center | Right |
代码框
引用代码框,在 Markdown下实现也非常简单,只需要用两个 小引号 把中间的代码包裹起来。图例:

注:使用 tab 键即可缩进。
Block Code:
block code:
Indent each line by at least 1 tab, or 4 spaces.
var Mou = exactlyTheAppIwant;
Indent each line by at least 1 tab, or 4 spaces.
var Mou = exactlyTheAppIwant;
Fenced Code:
用一对三个小引号
Fenced code blocks are like Stardard Markdown’s regular code
blocks, except that they’re not indented and instead rely on
a start and end fence lines to delimit the code block.
分割线
分割线的语法只需要三个 * 、 - 或 - - - 号,例如:
2087

被折叠的 条评论
为什么被折叠?



