Markdown syntax Lite version

Source: Internet
Author: User
From http://du.5d13.cn/a/itdev/doc/2011/0413/9162.html

  • Links are added in three forms. markdown supports relative links.

    <Link>: the link is simply marked;
    [Text] (Link "title"): adds a link to the text. The title is optional;
    [Text] [Mark]: add a link to the text. The link is given in a new line starting with [Mark] (usually at the end of the article. Alternatively, you can directly write it in the form of [text] [] and declare the link in the form of [text]: link in the following new line.

  • Image addition: Compared with the link, there is only one more exclamation point in front of the image "!".
  • Title format: markdown provides two methods.

    First, add 1 ~ to the title ~ "#" Indicates "The second is to start another line under the title and enter more than four equal signs "=" to represent "

  • Bold and italic: asterisk (*) or underscore "_"

    One parameter indicates italics;
    The two are in bold;
    The three columns indicate bold italics.

  • Reference content: "<BLOCKQUOTE>" marked in HTML. You only need to use right angle brackets at the beginning of the line. If you want nested references, add a few more>.
  • Original article output: if you do not want markdown to explain some content, there are two ways:

    The first is the "<PRE>" label escaped as HTML: add at least four spaces or the width of one tab before the content to be output as is;
    The second one is escaped as the "<code>" tag: add the "'" sign to the content to be output (that is, the key at the bottom of ESC ).

  • Unordered list: use any one of the asterisk (*), plus sign (+), and minus sign (-) before the text. Note that a space is left behind these symbols.
  • Ordered list: Add a number before the first entry, followed by an English sentence ".". No matter what number is currently added to the first entry, the list starts from 1.
  • Escape Character :"\". You only need to add \ To the character that you do not want to be escaped.
  • HTML Entity: If you want to output the "<" or "&" symbol in the content, you must use [HTML Entity] [] instead. Markdown directly translates the special characters in HTML into HTML objects.
  • Line Break: use more than two spaces at the end of a line in markdown to mark a line break in HTML "<br/> ".
  • Paragraph: as long as there is an empty line between the two lines, markdown recognizes it as a paragraph.
    (When writing this article, frog found that a blank row must be added before the list. Otherwise, markdown won't recognize "*" as a list .)
  • Horizontal line: It is represented by more than three "*" or. Space can be used between these asterisks and minus signs. If there is no space between the minus signs,
    It must be in a separate paragraph, or it will be recognized as the title.
  • Use HTML tags directly: some tags not supported by markdown can be directly written into HTML tags, such as tables.

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.