11 Basic Grammar of Markdown

Source: Internet
Author: User

11 Basic Grammar of Markdown

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/ "Google"
[2]: http://search.yahoo.com/ "Yahoo Search"
[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. Code (so-called in HTML)
There are two ways of implementing this:
The first type: A code box appears for simple text. Use '

'. (' not a single quote but a ' below the top left ' ESC ~ ')
The second type: large text needs to implement the Code box. Use tab and four spaces.

10. footnote (footnote)
Here's how it's implemented:
Hello[^hello]


[^hello]: Hi

11. Underline
Add three "-" dashes below the blank line. (added "-" at the bottom of the text, the implementation of level 2 headings)

References:

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

Markdown Official document Basic document : Http://daringfireball.net/projects/markdown/basics

Recommended Online Markdown Editor:

https://stackedit.io/

http://maxiang.info/

http://mahua.jser.me/

Https://www.zybuluo.com/mdeditor

http://wowubuntu.com/markdown/

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.