markdown 语法

markDown的常用语法,便于应用于博客,github之类简介中。包含标题、列表、表格、代码块等语法。

标题

1
2
3
4
5
6
# 一级标题
## 二级标题
### 三级标题
#### 四级标题
##### 五级标题
###### 六级标题

无序列表

  • list1
  • list2
  • list3
1
2
3
* list1
- list2
+ list3

有序列表

  1. a
  2. b
  3. c
1
2
3
1. a
1. b
1. c

分级列表

  • list1
    • list1-1
      1. list1-1-1
      1. list1-1-2
      1. list1-1-3
      
  • list2
    • list2-2
      • list1-2-1
      • list1-2-2
      • list1-2-3
  • list3
1
2
3
4
5
6
7
8
9
10
11
+ list1
- list1-1
1. list1-1-1
1. list1-1-2
1. list1-1-3
+ list2
+ list2-2
* list1-2-1
* list1-2-2
* list1-2-3
* list3

引用

这里是引用

1
> 这里是引用

插入链接

baidu

1
[baidu](http://www.baidu.com)

插入图片

baidu icon

1
![baidu icon](https://ss0.bdstatic.com/5aV1bjqh_Q23odCf/static/superman/img/logo_top_ca79a146.png)

字体

这是粗体
这也是粗体

1
2
**这是粗体**
__这也是粗体__

这是斜体
这也是斜体

1
2
*这是斜体 *
_这也是斜体_

分隔线


1
***

表格

Tables center right
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1
1
2
3
4
5
| Tables        | center        | right |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |

代码

这是代码行{}

1
`这是代码行{}`

1
2
3
{
通过```包围代码块
}

{
    四个空格也是代码块或一个tab(Windows)
}

删除线

我被划掉了

1
~~我被划掉了~~

参考链接
http://www.jianshu.com/p/q81RER

------本文结束 感谢阅读------