标题
# This is an H1 ## This is an H2 ###### This is an H6
文本块
使用一对各三个的反引号(```),例如:
我是文本块 我是文本块 我是文本块
文字高亮
文字高亮功能能使行内部分文字高亮,使用一对反引号(`),例如:
文字高亮
引用块
> 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.
换行
直接回车不能换行, 可以在上一行文本后面补两个空格, 这样下一行的文本就换行了,或者就是在两行文本直接加一个空行,也能实现换行效果,但是这个行间距有点大。
列表
无序列表
* Red * Green * Blue
有序列表
1. Bird 2. McHale 3. Parish
横线
下面每一行都会得到一个水平线
*** ___ ---
链接
这是一个 [连接显示文字](http://example.com/ "Title") 行内链接。 [连接显示文字](http://example.net/) 没有title属性。 <http://example.com/> 自动链接
强调
*single asterisks* _single underscores_ **double asterisks** __double underscores__
图片
行内图片
[图片上传失败...(image-75d43a-1536648559701)] [图片上传失败...(image-6b391-1536648559701)]
引用图片
![Alt text][id]
表格
| Left-Aligned | Center Aligned | Right Aligned | | :------------ |:---------------:| -----:| | col 3 is | some wordy text | $1600 | | col 2 is | centered | $12 | | zebra stripes | are neat | $1 |
Left-Aligned | Center Aligned | Right Aligned |
---|---|---|
col 3 is | some wordy text | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
删除线
文本两端加上两个~~即可,例如:
删除我
~~删除我~~
github 特有的特性
复选框列表
在列表符号后面加上 []
或者 [x]
代表选中或者未选中情况
* [x] C * [x] C++ * [x] Java * [x] Qt * [x] Android * [ ] C# * [ ] .NET
- [x] C
- [x] C++
- [x] Java
- [x] Qt
- [x] Android
- [ ] C#
- [ ] .NET
emoji表情
github 的 Markdown 语法支持添加 emoji 表情,输入不同的符号码(两个冒号包围的字符)可以显示出不同的表情。
比如,:blush:
:blush:
参考资料
- Markdown官网:http://daringfireball.net/projects/markdown/
- 中文参考:http://markdown.tw/