Markdown Study Manual

Source: Internet
Author: User

Markdown Study manual one. Simple function
function effect markdown Code Notes
Bold body Bold body **粗体** Both Sides plus * *
Italic body Italic body _斜体_ Add _ on both sides
Medium Dash Medium Dash Medium Dash Both sides add ~ ~
Single line Code Log.i("Hello World!") ' Log.i ("Hello world!") ` Both sides add '
Insert Picture ![Image](https://raw.githubusercontent.com/CharonChui/Pictures/master/rss.png?raw=true) [] Middle is placeholder, () middle is picture link
Link Visit Github [Visit Github](http://www.github.com) [] Middle for display text, () middle for link
Two. Other functions 1. Line break

Tap two spaces and a return key where you need to change the line, such as:

这是第一行(空格)(空格)(回车)这是第二行

TIP: Multiple new lines are treated as one line

2. Title

Markdown provides six sizes of headings, corresponding to the Html tags --to achieve different size titles by adding different numbers of # characters, such as:

# 最大的标题(相当于一个## 次大的标题(相当于一个...###### 最小的标题(相当于一个

Tip: # The more, the smaller the title

Or take advantage of = (highest order title) and-(second-order title), any number of = and-can have effect. For example:

H1===H2---

The effect is:

H1h23. List 3.1 ordered list

Number +. + Space, the following code:

1. 项目1  2. 项目2  3. 项目3  

The effect is:
1. Item 1
2. Item 2
3. Item 3

3.2 Unordered List

Start with a * and a space, the following code:

* 项目1* 项目2* 项目3

The effect is:
* Item 1
* Item 2
* Item 3

3.3 Sub-items indicate:

The sub-item Indents one tab and adds * and spaces to indicate the following code:

* 项目1    * 子项目1    * 子项目2* 项目2    * 子项目1

The effect is:
* Item 1
* Sub-item 1
* Sub-item 2
* Item 2
* Sub-item 1

4. Code block

With "' and" ' contains, the following code:

def hello():    print‘Hello World!‘

The effect is:

def hello():    print‘Hello World!‘

GFM expands the Markdown code block feature by adding a language name after the first "' above" to make different languages show different code highlighting styles, the following code:

publicstaticvoidmain(String[] args){    System.out.println("Hello World!");}

The effect is:

publicstaticvoidmain(String[] args){    System.out.println("Hello World!");}

The following code:

def hello():    print‘Hello World!‘

The effect is:

def hello():    print‘Hello World!‘
5. Forms

The standard Markdown does not support tables, but GFM can, the table head an empty line to --- be delimited as a table header, | separated by columns, the following code:

表头1|表头2---|---单元格1|单元格2单元格3|单元格4

The effect is:

Table Header 1 Table Header 2
Cell 1 Cell 2
Cell 3 Cell 4

You can also determine the alignment direction of a cell by adding it in the header delimiter : , the following code:

表头1|表头2|表头3:--|:--:|--:左1|中1|右1左2|中2|右2

The effect is:

Table Header 1 Table Header 2 Table Header 3
Left 1 Medium 1 Right 1
Left 2 Medium 2 Right 2
6. Special character escapes

If you need to use special characters in the body, you can use it \ to escape

    • Email: [Email protected]
    • Good luck!

Markdown Study Manual

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.