markdown use summary

Markdown Introduction


Markdown is a lightweight markup language, is the founder John Gruber (John Gruber). It allows people to "write documents using easy to read and write plain text format, and then converted into valid XHTML (or HTML) documents." This language has absorbed a lot of e-mail in plain text markup properties.

Common Syntax


title

A title # 
## subheadings 
### title three 
#### title four 
##### title five 
###### six title

Note: It is recommended to retain the character of a space between # and "a title." This is the most standard Markdown writing.

List

List format is also very common in Markdown, you only need to add in front of the text - can be, for example:

- Text 1
 - Text2
 - text 3

If you want an ordered list, you can also add 1. on it in front of the text, for example:

1 Text 1
 2 . Text2
 3 . Text3

Note: - between 1 and text you want to keep a space character.

Links and images

In Markdown, insert links no other buttons, you only need to use   [显示文本](链接地址) this syntax. For example:

[Deadpool](http://img31.mtime.cn/mg/2016/02/05/145836.38850143_210X210X4.jpg)

In Markdown, the Insert Picture no other buttons, you only need to use  ![](图片链接地址) this syntax. For example:

![](http://img31.mtime.cn/mg/2016/02/05/145836.38850143_210X210X4.jpg)

Note: Insert link grammar and syntax like the picture, just in front of one! .

Quote

At the time of writing often you need to refer to other people's text, this when referring to this format is very necessary, in Markdown, you just need to want you in front of quoted text plus  > enough.

Note: between> and the text you want to keep a space character.

Bold and italic

Markdown bold and italics are also very simple, with two  * contains a piece of text that is bold syntax, with a  * piece of text is in italics contain syntax.

form

The relevant code:

| Tables        | Are           | Cool  |
| ------------- |:-------------:| -----:|
| col 3 is      | right-aligned | $1600 |
| col 2 is      | centered      |   $12 |
| zebra stripes | are neat      |    $1 |

display effect:

Tables Are Cool
col 3 is right-aligned $1600
col 2 is centered $12
zebra stripes are neat $1

Code highlighting

Use beginning `XXX,` `` end block; XXX represents the language, for example: Java, xml, js the like; 
 Example: 
  `` `Java 
     the this Java code Space IS 
  `

Results are as follows:

    this is java code space
 

 

 

Guess you like

Origin www.cnblogs.com/aaron911/p/12021160.html