MD语法
md 语法
标题
# H1
## H2
### H3
#### H4
##### H5
###### H6
段落
用空行分隔
强调
*斜体*
_斜体_
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.
列表
1. First ordered list item
2. Another item
- First ordered list item
- Another item
Unordered list can use asterisks
- Or minuses
+ Or pluses
- Unordered list can use asterisks
- Or minuses
- Or pluses
链接
[I'm an inline-style link](https://www.google.com)
[I'm an inline-style link with title](https://www.google.com "Google's Homepage")
[I'm a reference-style link][Arbitrary case-insensitive reference text]
[I'm a relative reference to a repository file](../blob/master/LICENSE)
[You can use numbers for reference-style link definitions][1]
Or leave it empty and use the [link text itself]
Some text to show that the reference links can follow later.
[arbitrary case-insensitive reference text]: https://www.mozilla.org
[1]: http://slashdot.org
[link text itself]: http://www.reddit.com
I'm an inline-style link with title
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.
脚注
Text prior to footnote reference.[^2]
[^2]: Comment to include in footnote.
Text prior to footnote reference.[1]
图片
Here's our logo (hover to see the title text):
Inline-style:
![alt text](https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 1")
Reference-style:
![alt text][logo]
[logo]: https://github.com/adam-p/markdown-here/raw/master/src/common/images/icon48.png "Logo Title Text 2"
Here's our logo (hover to see the title text):
Inline-style:
Reference-style:
代码高亮
var s = "JavaScript syntax highlighting";
alert(s);
表格
Colons can be used to align columns.
| Tables | Are | Cool |
| ------------- |:-------------:| -----:|
| col 3 is | right-aligned | $1600 |
| col 2 is | centered | $12 |
| zebra stripes | are neat | $1 |
Colons can be used to align columns.
Tables | Are | Cool |
---|---|---|
col 3 is | right-aligned | $1600 |
col 2 is | centered | $12 |
zebra stripes | are neat | $1 |
Markdown | Less | Pretty
--- | --- | ---
*Still* | `renders` | **nicely**
1 | 2 | 3
Markdown | Less | Pretty |
---|---|---|
Still | renders |
nicely |
1 | 2 | 3 |
引用
> Blockquotes are very handy in email to emulate reply text.
> This line is part of the same quote.
Blockquotes are very handy in email to emulate reply text.
This line is part of the same quote.
水平线
Three or more...
---
Hyphens
***
Asterisks
___
Underscores
Three or more...
Hyphens
Asterisks
Underscores
Comment to include in footnote. ↩︎