Markdown 11 Basic Grammar

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 meaning) in Markdown, there are two ways to set the title:

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 (*, +, and-) at the beginning of the text to implement the unordered list. Note, however, that you need to add spaces between (*, +, and-) and text. (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.
Inline mode: This is a [link text] (http://example.com/).
Citation method:
I get ten 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")
Citation method:
! [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 ' <blockquote> '. (' 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.
The third type: "[optional specified language] code block content".

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:

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/

Transfer from Markdown 11 basic syntax

Markdown 11 Basic Grammar

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.