Markdown Concise Grammar

Source: Internet
Author: User
Markdown Concise Grammar

Markdown is a minimalist "markup language" that converts text to HTML, which is usually used by large yards of farmers. It does not pursue all-inclusive, simplicity is supreme, is the so-called not seeking the most expensive, only the best.

This article introduces markdown basic syntax, little content, a line of syntax one line example, learn to easily write tall documents, no need for various editors to tune the article format. In addition, the Internet has various platforms under the Markdown tools available, there are online, I directly use sublime to fix, Markdown was originally to pursue simplicity, get a tool not superfluous. Emphasize

Asterisks and underscores can be, only italic, double is bold, the symbol can be crossed lines, the symbol can be added space
Format:

  
* * A man came to Tennessee * *  
no doubt  
* I made the pie  
is the world's  
most delicious _ 

Display effect:
A man came to Tennessee
No doubt
* I made the Pies
It's all over the world *
The best slice of the line

Three or more-_*, must be a single line, can contain spaces
Format:

  
¯¯¯

Show effects: spaces, wrapping

Semi-square large space   or & #8194;
Whole-party large space   & #8195;
Continuous line of space   & #160;
2 spaces, 
Line wrap, press more than 2 spaces consecutively, and then enter a reference

Format:

> References 

Display effect:

Reference

The space before the inner symbol must be
Format:

 
  
references in > References >> references 

Display effect:

Reference

Reference headers in references

Format:

 
# first-level title  
# # Two title  
### three-level title #  
four-level title  
##### five-level title  
###### six-level title   
Unordered list

The space after the symbol can not be less,-+* effect, but not mixed, because the mixture is a nested list, the content can be very long
Format:

-unordered list  
+ unordered list  
* unordered list  
-unordered list: I'm very long. I am also very long. That's more than a. More than. I have so long, you have my long? I have so long. Well, you won. 

Display effect:
-Unordered list
+ Unordered List
* Unordered List
-unordered list: I am very long. I am also very long. That's more than a. More than. I have so long, you have my long? I have so long. Well, you won. Ordered list

Numbers can not be omitted but unordered, the number of spaces after the dot can not be less
1. Ordered list
2. Ordered list
3. Ordered list
4. Ordered list Nesting list

-+* can be recycled, but the space after the symbol can not be less, the space before the symbol can not be less
Format:

-Nested list  
+ nested list  
+ nested list  
-nested list  
* Nested list  
-nested list  

Display effect:
-Nested list
+ Nested list
+ Nested list
-Nested list
* Nested list
-Nested list text hyperlink: inline mode

Format:

  
Blog (https://mingdaa.github.io/)  

Display effect:
Blog picture Hyper-chain

Format:

! [Image] (http://picture address)

Display effect:
Index hyper-chain: Reference mode

Index, 1 2 can be any character
Format:

[My blog] [1]  
! Picture [2]  

[1]:https://mingdaa.github.io/  
[2]:https://picture Address 

Display effect:
My blog
Automatic link

Angle Bracket
Format:

 

Display effect:
https://mingdaa.github.io/Code

Format:

' 
class {public  
static void Main (string[] args)   
{  
System.out.println ("Hello world!");  
}  
' "  

Display effect:

Class  
{public
    static void Main (string[] args) 
    {
        System.out.println ("Hello world!");
    }
Comments

You can use an HTML annotation that will not be displayed in HTML
Format:

<!--annotation-->
Escape character

The escape character in the markdown is \ and needs to be escaped by:
\ back Slash
' Inverted quotes
* Asterisk
_ Underline
{} curly Braces
[] Bracket
() parenthesis
# Well No.
+ Plus
-Minus sign
. English period
! Exclamation table

Format:

 

---|---
Top Left | Top Right
Lower left | Lower right

Display Effect: Header 1 Header 2 left upper right upper left lower right down HTML useful character entity display result description Entity name entity number Space &nbsp; & #160; < less than number &lt; & #60; > Greater than number &gt; & #62; & and Number &amp; & #38; "Quotes &quot; & #34; ' Apostrophe &apos; (ie not supported) & #39; ¢ (cent) &cent; & #162; £ pound (pound) &pound; & #163; ¥ (Yen) &yen; & #165; € EUR (Euro) &euro; & #8364; § Section &sect; & #167; © Copyrights (copyright) &copy; & #169; ® Registered Trademarks &reg; & #174; TM Trademarks &trade; & #8482; X multiplication &times; & #215; Division &divide; & #247; Other

HTML tags can be used directly in the text, but the rows are added back and forth.

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.