#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.
以两个或两个以上以上空格结尾
一个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 s
require '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.
Sometimes you want to be 🆒 and add some ✨ to your 💬. Well we have a 🎁 for you: ❗ You can use emoji anywhere GFM is supported. 😎
@foo : for team members
#123 : for issues
!123 : for merge requests
$123 : for snippets
1234567 : for commits
[file](path/to/file) : for file references
Headers
Alternatively, for H1 and H2, an underline-ish style:
..Ab_c-d. e anchor ..
链接为#ab_c-d-e-anchor
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.
- 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
- links:
相对地址 ../LICENSE
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
Three or more...
Hyphens
Asterisks
Underscores
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 |