1 minutes Learn markdown Grammar

Source: Internet
Author: User

Markdown Concise Grammar Basic symbols
    • *,-, + 3 symbols effect are the same, these 3 symbols are called markdown symbols
    • A blank line represents a different paragraph
    • ' is to represent the inline Code, tab is used to mark the code snippet, respectively, corresponding to the HTML code,pre tag
Line break
    • Single paragraph (<p>) with a blank line
    • Two consecutive spaces will become a <br>
    • 3 consecutive symbols, then a blank line, representing the HR dash
Title
    • Generate H1--h6, add 1--6 # in front of the text to achieve
    • Text bold is through the text about each of the two symbols
Reference
    • Add ">" and a space in the first line, which means the code reference, and can also be nested
List

This is the main expression of the markdown file, subject to be

    • Using *,+,-plus an empty glyd representation
    • can support nested
    • Sequential tables with numbers + English dots + null Glyd representation
    • The list content is very long, does not need to enter the newline character manually, the CSS controls the paragraph width, will automatically scale
Link
    • Direct write [anchor text] (url "optional title")
    • The reference is defined first [Ref_name]:url, and then in the place where the URL needs to be written, so the [anchor text][ref_name] is used, and the usual ref_name is usually represented by a number, which makes IT professional
    • Shorthand URL: The URL anchor text generated with the angle brackets wrap URL is the URL itself
Insert Picture
    • One line means:! [Alt_text] (url "optional title")
    • Citation notation:! [Alt_text] [ID], pre-defined [id]:url "optional title"
    • Use the tag directly, so you can specify the size of the picture
Special symbols
    • Escape with \ To represent the markdown symbol in the text
    • You can use HTML tags directly in the text type, but be aware that when you use them, you'll be able to add overhead lines
    • Add a symbol before and after the text, indicating italic

1 minutes Learn markdown 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.