Turn-markdown Concise grammar

Source: Internet
Author: User

Markdown is a minimalist "markup language" that converts text into HTML, which is usually used by me as a big-yard farmer. It does not pursue chatty, concise supreme, is the so-called not the most expensive, only the best!

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

Emphasize
Asterisks and underscores can be, italic, double is bold, symbols can be cross-line, symbols can be added space * * A person came to Tennessee **__ no doubt __* I do the pie is the whole world *_ best to eat _

A man came to Tennessee

No doubt
I made the Pies
It's all over the world

The most delicious.

Split Line
Three or more-_*, must be a separate line, can contain spaces---
Reference
Translated into HTML is <BLOCKQUOTE></BLOCKQUOTE>, the space after the symbol can not > reference

Reference

Spaces before the inner symbol must be referenced in the > Reference >> Reference

  

Reference

References in references

Title: Setext Way
Three or more large titles = = = Small title---
Big title headline title: ATX Mode
# level Title # # two title # # # three title # # # Four title ##### five level title ###### six-level title
level headingsLevel Two titleLevel Three titlelevel four titlelevel five titlelevel six titleUnordered list
The space after the symbol must not be less,-+* effect, but not mixed, because the mixture is a nested list, the content can be super-unordered list-unordered list-unordered list-unordered list: I am very long. I am also very long! That's more than a ratio, huh? It's better than that! I have been so long, you have I long? I've been so long! All right, you win!
    • Unordered list
    • Unordered list
    • Unordered list
    • Unordered list: I'm very long. I am also very long! That's more than a ratio, huh? It's better than that! I have been so long, you have I long? I've been so long! All right, you win!
The space after the symbol must not be less,-+* effect, but not mixed, because the mix is nested list + unordered list + unordered list + unordered list
    • Unordered list
    • Unordered list
    • Unordered list
The space after the symbol cannot be less,-+* effect the same, but cannot be mixed, because the mix is nested list * unordered list * unordered list * unordered list
    • Unordered list
    • Unordered list
    • Unordered list
Ordered list
Numbers cannot be omitted but unordered, and spaces after the dot number cannot be 1 less. There are sequence table 2. There are sequence table 3. There are sequence table 8. Ordered list
    1. Ordered list
    2. Ordered list
    3. Ordered list
    4. Ordered list
Nested lists
-+* can be recycled, but the space after the symbol must not be less, the space before the symbol can not be less-nested list + nested list + nested list-nested list   * Nested list-nested list
    • Nested lists
      • Nested lists
      • Nested lists
        • Nested lists
          • Nested lists
    • Nested lists
Text hyperlink: inline mode
ToolTips can be omitted [inferior] (http://bruce-sha.github.io "inferior blog")

As

Picture Super Chain
Multiple exclamation points, ToolTips can be omitted, to set the size can only be the use of HTML tags! [GitHub Mark] (http://github.global.ssl.fastly.net/images/modules/logos_page/GitHub-Mark.png "GitHub Mark")

  

GitHub Mark

Index hyper-chain: Reference mode
Index, 1 2 can be any character [not as][1]! [GitHub Octocat] [2] [1]:http://bruce-sha.github.io[2]:http://github.global.ssl.fastly.net/images/modules/logos_page/octocat.png

As

GitHub Octocat

Auto Link
Angle brackets 

Http://ibruce.info

Code: in-line code
Specify a programming language after the first line, or you can not specify <!--? 0-->

  

val s = "Hello Markdown" println (s)
Code: Paragraph Code
Add 4 spaces before each line of text or 1 tabval s = "Hello Markdown" println (s)

 

val s = "Hello Markdown" println (s)
Code: Hexo
Can specify the programming language, "" represents the left and right curly braces "% Codeblock [title] [lang:language] [url] [link text]%" code snippet "% endcodeblock%"
Comments
With HTML annotations, it's like this? <!--comments--
Escape character
With HTML annotations, it's like this? The escape character in Markdown is \, escaped with: \ \ backslash \ ' Back quote \* asterisk \_ underscore \{\} curly brace \[\] bracket \ (\) parenthesis \# pound sign \+ plus \-minus \. English period! Exclamation number
Other
You can use HTML tags directly in the text, but you need to add a line above and after.
One more thing: Table
Markdown extension syntax, Hexo not supported | | *year* | | *temperature (Low) * | | *temperature (High) * | | | | 1900 | | -10 | | 25 | | | | 1910 | | -15 | | 30 | | | | 1920 | | -10 | | 32 | |
Precautions

Original address: http://ibruce.info/2013/11/26/markdown/

  

  

  

 

  

Turn-markdown Concise 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.