1. The title

Headings have two formats:

    1. Use the =, – flag

    1. Use #, ##, ###, ####, #####, ###### followed by Spaces to represent H1-H6

2. Paragraph format

There is no special format for paragraphs. You write text directly. Line feeds of paragraphs use two or more Spaces plus carriage return

2.1 the font

Markdown has the following fonts:

* * _ _ * * italic text italic text bold text bold text (* * * * * * * * bold italic text ___ ___ bold italic textCopy the code

2.2 dividing line

Use more than three asterisks, minus signs, and bottom lines to create a separate line. You can also insert Spaces between asterisks and minus signs.

2.3 strikeout

If you want to add a strikeout line to a paragraph, just add two squiggles ~~ at both ends of the text

~ baidu.com ~Copy the code

2.4 the underline

Through HTML tags, for example

<u> Underline this paragraph </u>Copy the code

2.5 the footnotes

A footnote is an addendum to a text, [^ Text to be noted]

[^ Big beet] : Come onCopy the code

List 3.

Unordered lists use asterisks (*), plus (+), or minus (-) as list markers, followed by a space and then filled in; Ordered lists are represented by numbers with a. Sign;

3.1 List nesting

List nesting simply adds four Spaces to the options in the sublist. For example:

1. First item: - first element nested in first item - second element nested in first item 2. Second item: - second nested first element - second nested second elementCopy the code

4. Block

Block references use the > symbol at the beginning of a paragraph, followed by a space symbol; Blocks can be nested, with one > symbol being the outermost layer, two > symbols being the first layer, and so on;Copy the code

5. The code

If the code is a function or fragment on a paragraph, it can be enclosed in backquotes (‘).

For example, the 'printf()' functionCopy the code

The code block

The code block uses 4 Spaces or a Tab (Tab key). It is also possible to wrap a block of code with a language (optionally not specified).Copy the code

Links to 5.

5.1 Simple Links

The name of the link

For example: [taobao](http://www.taobao.com)Copy the code

Or < link address >

<http://www.taobao.com>
Copy the code

5.2 Advanced Links

A link can be set by variable, and variable assignment occurs at the end of the document

This link uses 1 as the url variable [Google][1] this link uses runoob as the url variable [runoob] and then assigns the variable (url) at the end of the document [1]: http://www.google.com/ [runoob]: http://www.runoob.com/Copy the code

Picture 6.

Picture syntax format:

! [Alt attribute text](image address)! [Alt attribute text](Image address "optional title ")Copy the code

An exclamation mark at the beginning! This is followed by square brackets with the image’s replacement text followed by regular brackets with the image’s url, and finally enclosed in quotation marks with the optional ‘title’ attribute.

Advanced formatting: You can also use variables for image urls like urls

The link with 1 as the url variable [RUNOOB] [1]. Then at the end of the document as a variable assignment (url) [1] : http://static.runoob.com/images/runoob-logo.pngCopy the code

Note: Markdown does not yet have a way to specify the height and width of an image, you can use normal if you wantThe label.

Form 7.

Make table use | to separate different cell, use – to separate header and other lines

| | header header | | -- - | -- - | | | cell cell | | | | cell cellCopy the code

Table alignment:

** -: **, aligns the content and title bar to the right. **:-** sets the left alignment of the content and title bar. **:-: ** sets the content and title bar to be centered.Copy the code

8. Advanced skills

  1. Support HTML elements,

    HTML elements are supported: < KBD > <b> < I > <em> <sup> <sub> <br> etc.Copy the code

2. Many special symbols are used to express specific meanings, and escape characters are needed to display specific symbols; Markdown uses backslash \ escape special characters

Support the following symbol before + backslash to help insert common symbols: \ backslash 'backquote * asterisk _ underscore {} curly braces [] square brackets () curly braces # hash + plus - minus. English period! Exclamation markCopy the code
  1. The insertion formula is implemented using a mathematical formula in TeX or LaTeX format wrapped in two dollar characters $$. After submission, the Q&A and article pages load Mathjax as needed to render the math formula, for example