Summary of the usage specification of Macdown

Source: Internet
Author: User
Tags dashed line


1. Title

In Markdown, you just need to precede the text with #. In the same vein, you can add two-level titles, three-level titles, four-level titles, five-level titles, six-level titles, six levels, and just add #. The title font size is correspondingly reduced, for example:

#一级标题##二级标题###三级标题####四级标题#####五级标题######六级标题

Note: It is recommended to keep a single character space between #和 "one-level title", which is the most standard markdown notation

2. List
    • In Markdown, you just need to add-or + on the word card surface, for example:

        - 文本一  - 文本二  - 文本三
    • If you want to have a sequence table, precede the text with 1. 2.3. You can, for example:

        1. 文本一  2. 文本二  3. 文本三
    • The effect is as follows (the preceding > symbol indicates a reference), and if the-text "is not placed at the beginning of the line, it shows the Hollow circle:

    • Text One

    • Text Two

    • Text Three

    1. Text One
    2. Text Two
    3. Text Three

Note:-and 1. A space is left between the text, but when you follow the code, the Code requires two tabs (tab) or 8 spaces to display correctly.

3. Links, hyperlinks, pictures and code
    • In Markdown, when you insert a link, you only need to use syntax such as [use text] (link address), for example:

      MarkDown

    • In Markdown, when you insert hyperlinks (URLs, mailboxes, and so on), you only need to include them in <>, for example:

      [Email protected]

      Http://www.jianshu.com

    • In Markdown, when you insert a picture, you only need to use it! [] (image link address) such a syntax can be, for example:


    • In Markdown, create a block of code, as long as you add a tab or 4 spaces before the text, for example:

        - (void)hello  {        nslog(@"hello world");  }

Note: The syntax for inserting a picture is much like the syntax of a link, just one more front!. Here the [], (),! Symbols are English symbols.

4. Forms

The format is as follows:

  • Center row name, data left

    is
    Tables Cool
    Col 3 is right-aligned $1600
    Col 2 is Centered $
    Zebra Stripes Is neat $
  • Row name centered, data centered

    tables are cool
    col 3 is right-aligned $1600< /td>
    col 2 is centered $12
    zebra stripes are neat $1
  • Row name is left, data is left

    tables are cool
    col 3 is right-aligned $1600
    col 2 is centered $12
    zebra stripes are neat $1
  • Row name right, data right

    is
    Tables Cool
    Col 3 is right-aligned $1600
    Col 2 is Centered $
    Zebra Stripes Is neat $

Note: The vertical line on both sides is optional, but there must be, there is no.

5. Other
    • Enter

      A carriage return indicates a line break

      Two carriage return indicates a change of segment

    • Reference

      In markdown you just need to add > in front of the text you want to refer to, for example:

      A lamp, a dusk;

      Note:> and text suggest keeping a space between

    • Bold and italic

      In Markdown, two contains a paragraph of text is bold, with a paragraph containing a text is italic, for example:

      Bold body

      Italic body

      Bold Italic Body

    • Line

      Three asterisks or three minus or three underscores to create a dashed line, for example:

A minus sign or two minus sign, you can generate a solid horizontal line (the book does not support this format, the unit cannot be displayed)

    • Text highlighting

      Just use the text to include it. For example:

      突出显示文本

    • Text annotations

      Just use a format like [xxx], but you have to have the same [xxx] at the end of the article to explain the content, for example:

      [1]

    • Special symbols

      When you need to insert special symbols in the text, you need to precede the special symbols with backslashes, for example:

      #hello

      Note: The special symbol here is not just a single special symbol, but when special symbols and text or special symbols combined to form a special format, if you need to display special symbols, you need to add \. The # and hello combinations above will display the hello as the caption, if you need to display #hello at this point, you need to add \ before #.

6. Summary

The above syntax is only the basic syntax of markdown, in the actual use of multiple syntax is often mixed use, specific rules to be used in the specific experience. Individuals find it much easier to take notes with markdown than to use simple text, and to write things that are more readable.

Okey,happy writing!

* * Note: After a period of time the use of the sense of the text mentioned in the use of code block method is more stupid, continuous tab or space to make the composition of the article is very messy, here to introduce a more simple method, using
"' Bash
code block

    1. Hello?



Zaize
Links: https://www.jianshu.com/p/148e26058916
Source: Pinterest
Copyright belongs to the author. Commercial reprint please contact the author for authorization, non-commercial reprint please specify the source.

Summary of the usage specification of Macdown

Related Article

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.