Markdown Basic Usage

Source: Internet
Author: User

I. Introduction of Markdown

Markdown is a lightweight markup language that can write documents in plain text format and easily convert documents into valid XHTML or HTML.

Ii. markdown Syntax 2.1 Paragraphs and line breaks
    • Paragraph
      Must be blank line (blank or tab, etc.) before and after
      Adjacent two lines of text if there are no empty rows in the middle of the same row

    • "Line Break"
      Wrapping within a paragraph requires at least two spaces at the end of a line

2.2 Title
    • "Level headings"
      Use a number equal sign (=) or a # number

    • "Level two title"
      Use a few short lines (-) or two # numbers

    • "Three to six levels title"
      Use a relative number of # numbers

    • "Formatting provisions"
      Add # to the left and right sides of the title
      Whitespace characters on either side of the title are not displayed, and the middle white space characters are displayed

2.3 References
    • "Single-line Reference"
      Add a greater than sign (>) before each line

      Examples of single-line references

    • "Multi-line Reference"
      Add a greater than sign (>) in front of each line
      If you reference more than one empty row, the default is that the reference merges

      MultiRow reference, containing greater than sign
      Four blank lines, and the final display is merged into a blank line

      MultiRow references

      The above content is a blank line produced by the white space

    • "Nested References"
      A reference can be added to the reference, preceded by two greater than
      A null reference should be added between the two greater than sign and a greater than sign of the nested reference

      Nested reference, two greater than sign
      First nested reference

      There is an empty reference in the middle

      Second nested reference

2.4 List
    • "Unordered list"
      Use +-* Both to represent the list
      • Multiplication Sign * represents a list
      • The minus sign - indicates the list
      • The plus sign + represents the list
    • "Ordered list"
      For the time being, there is no suitable way to write directly in the HTML language
      Ordered list<ol> <li> </li> </ol>
      ※ This is not recommended.


      1. First item with sequence list

      2. Second item with sequence list

      3. The third item in a sequence list

    • "Nested list"
      Unordered lists and ordered lists can be nested with each other

2.5 Code
    • "Code block"
      Requires at least one blank line before and after, and requires at least one or four spaces before each line of code
      A blank line between the code is preferably 1 rows, otherwise it is treated as two blocks of code

      code 代码块开始code 代码块结束
    • "In-line code"
      Press the key above the TAB key by using the anti-quote (') English input method
      codeFor example, this situation generally means that the keyEnter

2.6 Dividing line

Use three or more *-_ in a row to add a separator line
There can be spaces between multiple characters but no other characters

2.7 Hyperlinks
    • "Inline Link"
      Format
      Link text
      Note: The title text can use single quotation marks, you can also use double quotation marks, the mouse is displayed on the text
      Absolute path links, such as:
      Google
      Relative path links, such as:
      Img.png
      Include a link to the title, such as:
      Google

    • "Reference type"
      You can unload the content somewhere else first

Markdown Basic Usage

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.