11 Basic Grammar of Markdown

Source: Internet
Author: User

Now is the note I made when I was studying markdown. It is no problem to learn the basic use of these markdown.

1. Caption settings (make the font larger, and Word's title means the same)
There are two ways to set a title in Markdown:
The first one: by adding "=" and "-" below the text, they represent a primary heading and a level two heading.
The second type: Add "#" to the beginning of the text, and the number of "#" headings. (only 1~6 level headings, 1-level title font maximum)

2. Block Annotations (BLOCKQUOTE)
Block comments are indicated by adding ">" at the beginning of the text. (When you add five blank between > and text, the text of the block comment changes.) )

3. Italic body
Use 1 "*" or "_" on both ends of the text that you want to set to italic.

4. Bold
Use 2 "*" or "_" on both ends of the text that you want to set to italic.

5. Unordered list
Add at the beginning of the text ( *, +, and -) to implement an unordered list. But pay attention to the ( *, +, and -) and text to add spaces. (Recommended: Only one document is represented by an unordered list)

6. Ordered list
Use the numbers to follow the period. (There are also spaces)

7. Link (links)
There are two ways to implement links in Markdown, in the form of inline and citation.
内联方式:This is an [example link](http://example.com/).
引用方式:

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

[1]: http://google.com/
[2]: http://search.yahoo.com/
[3]: http://search.msn.com/ "MSN Search"

8. Picture (Images)
The way the pictures are handled and how they are handled is very similar.
Inline mode:![alt text](/path/to/img.jpg "Title")
引用方式:

![alt text][id] 

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

9. 代码(HTML中所谓的Code)
实现方式有两种:
第一种:简单文字出现一个代码框。使用`<blockquote>`。(`不是单引号而是左上角的ESC下面~中的`)
第二种:大片文字需要实现代码框。使用Tab和四个空格。

10. 脚注(footnote)
实现方式如下:
hello[^hello]


[^hello]: hi

11. 下划线
在空白行下方添加三条“-”横线。(前面讲过在文字下方添加“-”,实现的2级标题)

References:

The above content is organized according to the basic document of the official document. Http://daringfireball.net/projects/markdown/basics

Markdown Official website: http://daringfireball.net/projects/markdown/

Recommend an online markdown editor: https://stackedit.io/

11 Basic Grammar of Markdown

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.