MarkDown

1 标题

一级标题 #H1 或 H1下加=
二级标题 #H2 或 H2下加-
多级标题 多个#加Hx 最多6个#

2 分割线

空白行下三个以上-或*

3 文本强调

斜体 一组* 或 _ 包起来
加粗 两组* 或 _ 包起来
粗斜体 三组* 或 _ 包起来

但是,如果你的 * 和 _ 两边都有空白的话,它们就只会被当成普通的符号:这是一段 * 文本强调 * 的说明示例。 如果要在文字前后直接插入普通的星号或底线,你可以用反斜线(转义符):\*this text is surrounded by literal asterisks\*

4 列表

无序列表 * 或 + 或 -
有序列表 1. 数字+点+空格

5 代码

5.1 代码区块

缩进 4 个空格或是 1 个制表符, 一个代码区块会一直持续到没有缩进的那一行(或是文件结尾)。

5.2 代码标记

5.2.1 单行代码

用反引号把它包起来,例如:

Use the `printf()` function.

如果要在代码区段内插入反引号,你可以用多个反引号来开启和结束代码区段:

``There is a literal backtick (`) here.``

5.2.2 多行代码

用3个反引号包起来,例如:

``` python
@requires_authorization
def somefunc(param1='', param2=0):
    '''A docstring'''
    if param1 > param2: # interesting
        print 'Greater'
    return (param2 - param1 + 1) or None
class SomeClass:
    pass
```

6 区块引用

在每行的最前面加上 >,或只在段落第一行前加 >; 区块引用可以嵌套(例如:引用内的引用),只要根据层次加上不同数量的 >。

7 链接

7.1 内联方式

This is an [example link](http://example.com/ "Title").

7.2 引用方式

I get 10 times more traffic from [Google][1] than from [Yahoo][2] or [MSN][3].  

[1]: http://google.com/        "Google" 
[2]: http://search.yahoo.com/  "Yahoo Search" 
[3]: http://search.msn.com/    "MSN Search"

7.3 Email

8 图片

8.1 内联方式

![alt text](/path/to/img.jpg "Title")

8.2 引用方式

![alt text][id] 

[id]: /path/to/img.jpg "Title"

9 脚注

hello[^hello]

[^hello]: this means hi

10 表格

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

11 转义符

Markdown 支持以下这些符号前面加上反斜杠来帮助插入普通的符号: \反斜杠 反引号 *星号 _下划线 {}花括号 []方括号 ()括弧 #井字号 +加号 -减号 .英文句 !感叹号

12 目录

在任意位置插入[TOC]

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注