Github和Hexo上很多地方都使用*.md来写文档,整理常用的code
方便copy使用;
详细语法说明请可以参考 Markdown 语法说明
This is an H1
=============
this is an h2
---------------
# This is an H1
## This is an H2
### This is an H3
#### This is an H4
##### This is an H5
###### This is an H6
# This is an H1 #
## This is an H2 #
### This is an H3 #
#### This is an H4 #
##### This is an H5 #
###### This is an H6 #
## HTML ##
This is a regular paragraph.
<table>
<tr>
<td>Foo</td>
</tr>
</table>
This is another regular paragraph.
## 区块元素 BLOCK ##
###### block.eg1 #
> This is the first level of quoting.
>
> > This is nested blockquote.
>
> Back to the first level.
###### block.eg2 #
> ## This is a header.
>
> 1. This is the first list item.
> 2. This is the second list item.
>
> Here's some example code:
>
> return shell_exec("echo $input | $markdown_script");
###### block.code.eg1 #
Here is an example of AppleScript:
tell application "Foo"
beep
end tell
###### block.code.eg2 #
``There is a literal backtick (`) here.``
## 列表 LIST ##
###### list.eg1 #
* red
* green
* blue
###### list.eg2 #
+ red
+ green
+ blue
###### list.eg3 #
- red
- green
- blue
###### list.eg4 #
1. red
2. green
3. blue
## 横线 HORIZONTAL RULES #
* * *
***
******
- - -
---------------------------------
## 链接 LINK #
1.This is [an example](http://example.com/ "Title") inline link.
2.[This link](http://example.net/) has no title attribute.
3.This is [an example] [id] reference-style link.
[id]: http://example.com/ "Optional Title Here"
## 强调 EMPHASIS #
*single asterisks*
_single underscores_
**double asterisks**
__double underscores__
## 图片 IMAGE #
![Alt text](/path/to/img.jpg)
![Alt text](/path/to/img.jpg "Optional title")
![Alt text](http://www.google.com.hk/images/srpr/logo3w.png "Optional title")
![Alt text][id]
[id]: /path/to/img.jpg "Optional title attribute"
## 表格 TABLE #
| Item | Value | Qty |
| :-------- | --------:| :--: |
| Computer | 1600 USD | 5 |
| Phone | 12 USD | 12 |
| Pipe | 1 USD | 234 |
## MISC #
###### 自动链接 AUTOMATIC LINKS #
<http://www.163.com>
<address@example.com>