#1. 换行符
first line second line
fouth line libhab 这里只要一个空格
End a line with two or more spaces will create a hard linebreak, called <br /> in HTML. ( Control + Return )
Above line ended with 2 spaces.
以两个或两个以上以上空格结尾
#2. 链接自动生成
#3. 代码高亮
一个tab或者四个空格:
var Mou = exactlyTheAppIwant
var s = "JavaScript syntax highlighting";
alert(s);def function():
#indenting works just fine in the fenced code block
s = "Python syntax highlighting"
print srequire 'redcarpet'
markdown = Redcarpet.new("Hello World!")
puts markdown.to_html@nice-blue: #5B83AD;
@light-blue: @nice-blue + #111;
#header { color: @light-blue; }No language indicated, so no syntax highlighting.
s = "There is no highlighting for this."
But let's throw in a tag.
#4. Emoji(表情)
Sometimes you want to be 🆒 and add some ✨ to your 💬. Well we have a 🎁 for you: ❗ You can use emoji anywhere GFM is supported. 😎
#5. 特殊符合开始
@foo : for team members
#123 : for issues
!123 : for merge requests
$123 : for snippets
1234567 : for commits
[file](path/to/file) : for file references
#6. 标准markdown
Headers
Alternatively, for H1 and H2, an underline-ish style:
..Ab_c-d. e anchor
..
链接为#ab_c-d-e-anchor
#7. 字体
Emphasis, aka italics, with asterisks or underscores.
粗体 Strong emphasis, aka bold, with asterisks or underscores.
粗,粗斜体 Combined emphasis with asterisks and underscores.
删除线
Strikethrough uses two tildes. Scratch this.
- list
- First ordered list item
- Another item
- Unordered sub-list.
- Actual numbers don't matter, just that it's a number
- Ordered sub-list
- And another item.
Some text that should be aligned with the above item.
- Unordered list can use asterisks
- Or minuses
- Or pluses
#9. 链接
- links: I'm an inline-style link
I'm a relative reference to a repository file
You can use numbers for reference-style link definitions
Or leave it empty and use the link text itself
Some text to show that the reference links can follow later.
- email: An email [email protected] link.
Reference-style: ![alt text1][logo] [logo]: assets/logo-white.png
#11. 横线 Three or more...
Hyphens
Asterisks
Underscores
#12. 表格
| header 1 | header 2 |
|---|---|
| cell 1 | cell 2 |
| cell 3 | cell 4 |
| First Header | Second Header | Third Header |
|---|---|---|
| Content Cell | Content Cell | Content Cell |
| Content Cell | Content Cell | Content Cell |
If you wish, you can add a leading and tailing pipe to each line of the table:
| First Header | Second Header | Third Header |
|---|---|---|
| Content Cell | Content Cell | Content Cell |
| Content Cell | Content Cell | Content Cell |
Specify alignement for each column by adding colons to separator lines:
| First Header | Second Header | Third Header |
|---|---|---|
| Left | Center | Right |
| Left | Center | Right |
| aaa | bbb | ccc |
|---|---|---|
| Content Cell | Content Cell | Content Cell |
| Content Cell | Content Cell | Content Cell |
