Introduction to Markdown Syntax

 3 minutes to read

1. Title

Add # in front of the text you want to set as the title to indicate

One # is the first-level heading, the second # is the second-level heading, and so on, supporting the sixth-level heading.

Examples are as follows:

# This is the first level heading
## This is a secondary heading
### This is a three-level heading
#### This is the fourth level heading
##### This is a five-level heading
###### This is the sixth level heading

The display effect is as follows:

This is the first level heading

This is a secondary heading

This is a three-level heading

This is the fourth level heading

This is a five-level heading
This is the sixth level heading

Two, fonts

Bold => Wrap the left and right characters with two * signs respectively

Italic => Wrap the left and right characters with *

Italic and bold=>Wrap the left and right italic and bold text with three * signs respectively

Strikethrough => Wrap the text to be strikethrough with two ~~

Example:

**This is bold text**
*This is slanted text*`
***This is italic and bold text***
~~This is the strikethrough text~~

This is bold text

This is slanted text`

This is italicized bold text

This is the strikethrough text

Three, reference

Just add> before the quoted text. References can also be nested, such as adding two » three »> n…

Example:

> This is what is quoted
>>This is the quoted content
>>>>>>>>>>This is the quoted content

The display effect is as follows:

This is what is quoted

This is the quoted content

This is the quoted content

Four, dividing line

Three or more than three-or * are all fine.

Example:

---
----
***
*****

The display effect is as follows:





Five, pictures

grammar:

![Description](picture address "picture title")

Example:

Landscape

Six, hyperlinks

grammar:

[Hyperlink name](Hyperlink address "Hyperlink title")

Example:

Baidu

Seven, list

Unordered list

grammar:

For unordered lists-+ * Any one is fine

-List content
+ List content
* List content

Note: There must be a space between-+ * and the content

The display effect is as follows:

-List content

  • List content
  • List content

Ordered list

grammar:

1. List content
2. List content
3. List content

Note: there must be a space between the serial number and the content The display effect is as follows:

  1. List content
  2. List content
  3. List content

8. Form

grammar:

Header|Header|Header
-|:-:|-:
Content|content|content
Content|content|content

The second line splits the header and content.

Text is left by default -Add on both sides: means the text is centered -Add on the right: the text is on the right

The display effect is as follows:

HeaderHeaderHeader
Contentcontentcontent
Contentcontentcontent

Nine, code

grammar:

Single line of code: each code is wrapped with a backquote

`Code Content`

The display effect is as follows:

print("Hello World!")

Code block: the code is wrapped with three backquotes, and the backquotes on both sides occupy a line

switch *httpVersion {
case 1:
    client.Transport = &http.Transport{
        TLSClientConfig: tlsConfig,
    }
case 2:
    client.Transport = &http2.Transport{
        TLSClientConfig: tlsConfig,
    }
}