Markdown 基础篇

Markdown 是什么我就不说明了,希望了解的同学请 Google

 

Markdown

Headers:

setext:

(

) 以=作为下划线 equal sign

(

) 以-作为下划线 hyphens

atx:

1-6个#放在行首,N个#对应

Blockquotes:

应用以>打头 (angle brackets)

Phrase emphasis:

* asterisks _ underscores 着重

** __ Strong emphasis

Lists:

unordered list:

* asterisks + pluses - hyphens 无序列表,可互相替换,注意符号后带一个空格

* Candy

* Gum

* Booze

ordered list:

数字加点号 . period

如果在列表中间加入空白行,会得到带p的列表项

通过在行前添加一个tab或者4个空格,可以得到多行的列表项

Links:

Inline-style links:

使用中括号[] square brackets,链接紧跟在[]后面,并会小括号包起

This is an [example link](http://www.example.org).

加Title

This is an [example link](http://www.example.org "With a title").

Regerence-style links:

引用定义在其他地方的url

I get 10 times more traffic from [Google][1] than from [Yahoo][2] or [MSN][3].

 

[1]: http://google.com/ "Google"

[2]: http://search.yahoo.com "Yahoo Search"

[3]: http://search.msn.com/ "MSN Search"

[引用]: url title

 

引用页能包含字符,字符对大小写不敏感

 

I start my morning with a cup of coffee and [The New York Times][NY Times]

 

[ny times]: http://www.nytimes.com/

Images:

much like links

inline-style:

![alt text](/path/to/img.jpg "Title")

Reference-style:

![alt text][id]

 

[id]: /path/to/img.jpg "Title"

Code:

` backtick quotes & ampersand 

包裹在`中,任何&和<>都会自动转义

I strongly recommend against using any `` tags.

 

添加成段的格式化过的Code, 用tab或者4个空格缩进,任何&<>都将自动转义

 

你可能感兴趣的:(Markdown)