One, the introduction

Markdown is a plain text markup language. It allows plain text content to be formatted through simple markup syntax. It’s very cool.

Second, basic grammar

1, title,

# this is primary headlines # # # # # this is secondary this is triple title # # # # this is 4 # # # # # this title is a category five titles # # # # # # this is six levels of headingsCopy the code

This is a level 1 heading

This is the secondary title

This is a level 3 heading

This is a level 4 heading

This is a level five heading
This is a six level title

2, fonts,

This is bold words * * * * * it is tilted text * * * * this is tilted bold words * * * ~ ~ this is the text strikethrough ~ ~Copy the code

So this is the bold text and this is the slanted text and this is the bold text with the strikeout


3, references,

>s  
>s  
>>s
>>>s
Copy the code

s

s

s

s


4. Dividing line

Three or more – or *.

-- -- -- -- -- -- -- -- -- -- * * * * * * * * * *Copy the code




5, the picture

! [alt](url 'title')Copy the code

6. Hyperlinks

(url 'title(hover)')Copy the code


Nuggets championship


7, lists,

7.1 Unordered List

– + *

- List content 1 + List content 2 x list content 3Copy the code

  • List Contents 1
  • List contents 2
  • List contents 3

7.2 Ordered List

Digital add

1. List content 1 2. List Content 2 3. List contents 5Copy the code

  1. List Contents 1
  2. List contents 2
  3. List contents 3
  4. List contents 4
  5. List contents 5

7.3 List Nesting

Add three Spaces between the current level and the next level

1. List contents 1. 1-1. List contents 2-2-1-2-2 1. List Contents 3-3-1-3-1-1 1. 3-1-1-1-1Copy the code

  1. List Contents 1
    1. 1-1
    2. 1 to 2
    3. 1-3
  2. List contents 2
    • 2-1
    • 2-2
  3. List contents 3
    • 3-1
      • The 3-1-1
        1. The 3-1-1-1

8, tables,

The second line separates the header from the content; ‘:’ sets alignment rules, default left alignment, :– or –; Note: the native grammar with | wrapped up on both sides. Is omitted

Name number | -- - | | skills: - : | - : liu2 bei4 | | cry eldest brother guan yu play | | second brother zhang fei scold | | three younger brotherCopy the code

The name skills ranking
Liu bei cry The eldest brother
Guan yu play Second brother
Zhang fei scold Three younger brother

9, code,

“`js const text = ‘Hello Word’; function main (param) {return param; } main(text); ` ` `


const text = 'Hello Word';
function main (param) {returnparam; } main(text);Copy the code

10, directories,

Plugins are required to implement this, and the general syntax is [TOC].

Three, common skills

1, a newline

  1. More than two consecutive Spaces + carriage return
  2. Use HTML newline tags

2. Indent characters

Continuous lines of blank space

3. Special symbols

For syntax symbols in Markdown, the escape character (backslash) ‘\’ is preceded by the symbol itself.

\\ \* \_ \{\} \[\] \(\) \# \+ \- \.\!Copy the code

\ * _ {} [] () # + -.!


4. Complex grammar

1. Use LaTex mathematical formulas

$\sqrt{x^{2}}$ $a_{1}$  $\neq$ $x^{2}$ $\sum_{i=1}^{n}$
Copy the code

X2 \ SQRT {x ^ {2}} x2 a1a_ {1} a1 indicates \ neq  = x2x ^ {2} x2 ∑ I = 1 n \ sum_ {I = 1} ^ {n} ∑ I = 1 n


2. Flow chart

Flow st=>start: start op=>operation: Your operation cond=>condition: Your operation cond=>condition: Yes or No? e=>end st->op->cond cond(yes)->e cond(no)->op “` “`flow st=>start: Start|past:>www.google.com[blank] e=>end: End:>www.google.com op1=>operation: My Operation|past op2=>operation: Stuff|current sub1=>subroutine: My Subroutine|invalid cond=>condition: Yes or No?|approved:>http:www.baidu.com c2=>condition: Good idea|rejected io=>inputoutput: catch something… |request st->op1(right)->cond cond(yes, right)->c2 cond(no)->sub1(left)->op1 c2(yes)->io->e c2(no)->op2->e “`

3, ToDoList

- [] Unprocessed Event 1 - [] Unprocessed event 2 - [x] Processed event 1 - [x] Processed event 2Copy the code

  • Event 1 to be handled
  • Event 2 to be handled
  • Event 1 has been handled
  • Event 2 has been handled

4. Sequence diagrams

Online editing

Alice->Bob: Hello Bob, how are you?
Note right of Bob: Bob thinks
Bob--> Alice:I am good thanks!
Copy the code

Relevant supplementary articles: blog.csdn.net/witnessai1/…