Thanks WeChat Format source: github.com/lyricat/wec…

Other tools recommended:

  • Wechat official account editor Makrdown: md.openwrite.cn
  • OpenWrite: HTTPS ::// openWrite.cn

Markdown use tutorial

  • What is a Markdown?
  • How do I use Markdown?

What is a Markdown?

Markdown is a lightweight markup language that writes documents in plain text (easy to read, write, and change) and eventually publishes them in HTML format.

Markdown can also be understood as a tool for converting languages written in Markdown syntax into HTML content

Why use it?

  • It is plain text that is easy to read (comfortable to look at), easy to write (simple syntax), and easy to change. Minimalism is everywhere.
  • HTML compatible, can be converted to HTML format for publication.
  • Cross-platform use.
  • More and more websites support Markdown.
  • Organize your email more easily and clearly. (Markdown – here, Airmail)
  • Get rid of the Word.

Without the extension, Markdown’s syntax is absolutely unbelievably simple.

3. Markdown grammar

Markdown syntax is divided into the following sections:

Title, paragraph, block reference, code block, emphasis, list, separator, link, picture, backslash \, symbol ‘ ‘.

3.1 the title

Two forms:

1) Mark first – and second-level headings with = and -.

Primary title ========= Secondary title ———

Effect:

Primary title

The secondary title

2) Use # to indicate level 1-6 headings.

# 1 title # # 2 headlines # # # # # # # 3 4 headlines # # # # # # # 5 # # # # six levels of headings

Effect:

Primary title

The secondary title

Level 3 title

Level 4 titles

Five titles
Six levels of headings

Paragraph 3.2

Before and after your paragraphs should be blank lines. Blank lines are lines without text. You can force a line break in a segment by using two or more Spaces and carriage return (line breaks omit carriage return in references).

3.3 Block Reference

Use the symbol > on each line of a paragraph or only on the first line. You can also use multiple nested references, such as:

> Block references >> nested references

Effect:

Block reference

Nested references

3.4 Code Block

Code blocks are created by adding 4 Spaces or a TAB character to each line (just like writing code). As in ordinary paragraphs:

void main()

{

printf(“Hello, Markdown.”);

}

Code block:

void main()
{
    printf("Hello, Markdown.");
}
Copy the code

Note: There is a blank line between the need and the normal paragraph.

3.5 emphasis on

Add * or _ to each side of the emphasis, as in:

* italic *, _ italic _ ** bold **, __ bold __

Effect:

Italic, italic bold, bold

3.6 list

Mark unordered lists with ·, +, or -, as in:

Minus plus star, the first term, minus plus star, the second term, minus plus star, the third term

Note: at least one _ space _ or _ TAB _ must follow the tag. If not in the reference block, there must be a blank line between it and the preceding paragraph.

Effect:

  • The first item
  • The second
  • The third

The ordered list is marked by replacing the above symbols with numbers, supplemented by:

1. Item 1 2. Item 2 3

Effect:

  1. The first item
  2. The second
  3. The third

3.7 line

Separators are most commonly used with three or more *, and can also be used with – and _.

3.8 the link

Links can be generated in two forms: inline and reference. The inline type:

[OpenWrite official website](HTTPS ::// openWrite.cn “OpenWrite”).

Effect:

OpenWrite official website address.

Reference type:

[1] [2] [1]: HTTPS ::// openWrite.cn “OpenWrite” [2]: HTTPS ::// openWrite.cn “OpenWrite”

Effect:

OpenWrite official address 1 OpenWrite official address 2

Note: the above [1]: HTTPS :://openwrite.cn “openwrite” does not appear in the block.

4.9 the picture

The form of adding pictures and links is similar, just add one in front of the link on the basis of! .

4.10 the backslash\

Equivalent to reverse escape. Make a symbol a common symbol.

4.11 symbols’ `

Act as a marker. Such as:

`ctrl+a`

Effect:

ctrl+a

Who’s in?

Markdown users:

  • GitHub
  • Jane’s book
  • Stack Overflow
  • Apollo
  • Moodle
  • Reddit
  • , etc.

This article is published by OpenWrite!

This article is published by OpenWrite!