Markdown的使用

1. 标题

#  H1
##  H2
###  H3
####  H4
#####  H5
######  H6
另外,H1和H2还能用以下方式显示: 一级标题 === 二级标题 ---

2.Emphasis 文本强调:

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

3. Lists 列表:

Unordered 无序列表:
* 无序列表
* 子项
* 子项
 
+ 无序列表
+ 子项
+ 子项
 
- 无序列表
- 子项
- 子项
 
Ordered 有序列表:
1. 第一行
2. 第二行
3. 第三行
 
1. 第一行
- 第二行
- 第三行
 
组合:
* 产品介绍(子项无项目符号)
    此时子项,要以一个制表符或者4个空格缩进
 
* 产品特点
    1. 特点1
    - 特点2
    - 特点3
* 产品功能
    1. 功能1
    - 功能2
    - 功能3
 
可有时我们会出现这样的情况,首行内容是以日期或数字开头:2013. 公司年度目标。
为了避免也被转化成有序列表,我们可以在"."前加上反斜杠(转义符):2013\. 公司年度目标。

4.Links 连接(title为可选项):

Inline-style 内嵌方式:
[link text](https://www.google.com "title text")
 
Reference-style 引用方式:
[link text][id]
[id]: https://www.mozilla.org "title text"
 
Relative reference to a repository file 引用存储文件:
[link text](../path/file/readme.text "title text")
 
还能这样使用:
[link text][]
[link text]: http://www.reddit.com
 
Email 邮件:
<example@example.com>

5.Images 图片:

Inline-style 内嵌方式:
![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "title text")
 
Reference-style 引用方式:
![alt text][logo]
[logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "title text"

 

posted @ 2015-02-28 12:48  hewep  阅读(80)  评论(0)    收藏  举报