Markdown Grammer (common syntax) _markdown

Source: Internet
Author: User

Original link: http://sguotao.com/2015/03/23/Markdown-Grammer.html 1. Title Settings

Set the caption in the markdown,

First: By adding "=" and "-" below the text, they represent a level heading and a level two heading.

Second: At the beginning of the text with "#", the number of "#" to represent a few levels of headings. (Altogether only 1~6 level title, 1 level title font maximum) 2. Block comment

Block comments are represented by adding ">" at the beginning of the text. (When you add five blank between > and text, the text of the block annotation changes.) ) 3. Italic

Use 1 "*" or "_" clips at both ends of the text you want to italic 4. Bold

Use 2 "*" or "_" clips at both ends of the text you want to italic 5. Unordered list

Add (, +, and-) to the beginning of the text to implement the unordered list. Note, however, that you need to add spaces between (, +, and-) and text. 6. Ordered list

Use a number to follow the period. (There are also spaces) 7. Link

There are two ways to implement links in markdown, namely inline and reference.

Inline mode: This is a [example link] (http://sguotao.com).

Reference mode: I get the 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. Pictures

How the image is handled and how it is handled is very similar.

Inline mode:! [ALT text] (/path/to/img.jpg "Title")

Reference mode:! [ALT text] [ID]

[ID]:/path/to/img.jpg "Title" 9. Code (in HTML, the so-called code)

There are two ways to implement this:

First: Simple text appears in a code box. Use <blockquote>. (not single quotes but below ESC in the upper left corner)

The second type: large text needs to implement the Code box. Use tab and four spaces. 10. Footnote

Implemented in the following way: Hello[^hello]

[^hello]: Hi 11. Underline

Add three "-" horizontal lines below the blank line. (Before adding "-" to the bottom of the text, the implementation of the 2-level heading)

Http://www.cnblogs.com/hnrainll/p/3514637.html

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.