Markdown syntax summary

Markdown is a lightweight markup language that allows people to write documents in plain text format that is easy to read and write.

Introduction to Markdow

The Markdown language was created by John Gruber in 2004.

Documents written by Markdown can be exported to HTML, Word, image, PDF, Epub and other formats.

The suffix of the document written by markdown is. MD,. Markdown

Basic grammar

title

# First level title
## Secondary title
### Level 3 title
#### Level 4 title
##### Level 5 title
###### Level 6 title
copy

paragraph

Markdown paragraphs have no special format, so it's good to write the text directly. The line feed of the paragraph is to use more than two spaces and carriage return. You can also use a blank line after a paragraph to indicate that you want to restart a paragraph.

typeface

*Italic text*
_Italic text_
**Bold text**
__Bold text__
***Bold italic text***
___Bold italic text___
<u>Underlined text</u>
The footnote format is similar to this: [^footnote]. 
[^footnote]: 2333
copy

Italic text Italic text Bold text Bold text Bold italic text Bold italic text Underlined text The footnote format is similar to this: [1].

Divider

***
* * *
*****
- - -
----------
copy

Strikethrough

Baidu
~~Google~~
copy

Baidu Google

list

Unordered list
* Item 1
+ Item 2
- Item 3
copy
  • Item 1
  • Item 2
  • Item 3
Ordered list
1. Item 1
2. Item 2
3. Item 3
copy
  1. Item 1
  2. Item 2
  3. Item 3
Nested list

Two spaces

* Item 1
  * First item: the first element of the nest
  * The second element of the first nested item
copy
  • Item 1
    • First item: the first element of the nest
    • The second element of the first nested item

task list

* [x] task list 1
* [x] task list 2
* [ ] task list 3
  * [ ] task list 3-1
  * [ ] task list 3-2
    * [ ] task list 3-2-1
* [ ] task list 4
  * [ ] task list 4-1
  * [ ] task list 4-2
copy
  • task list 1
  • task list 2
  • task list 3
    • task list 3-1
    • task list 3-2
      • task list 3-2-1
  • task list 4
    • task list 4-1
    • task list 4-2

block

> block
> block  
> Outermost layer
>> First level nesting
>>> Second level nesting
copy

block block Outermost layer First level nesting Second level nesting

code

`code`
```java
System.out.println("Hello World");
\```
copy

code

System.out.println("Hello World");
copy

link

[Pixiv search](https://pixivic.com/)
[My blog](https://lzw-723.github.io)
copy

Pixiv search My blog

picture

![alt Attribute text](Picture address:)
![alt Attribute text](Picture address: "Optional Title:")

![Hikigaya Hachiman ](https://s2.ax1x.com/2020/02/22/3MhWfs.jpg)

![snowノSnow](https://s2.ax1x.com/2020/02/22/3MfbRI.jpg "snow ノ snow is")
copy

form

Markdown makes tables using | to separate different cells and - to separate the header and other rows.

|  Header   | Header  |
|  ----  | ----  |
| Cell  | Cell |
| Cell  | Cell |
copy

Header

Header

Cell

Cell

Cell

Cell

Advanced skills

HTML

Tags not covered by Markdown can be directly written in HTML in the document.

Currently supported HTML elements are: <kbd> <b> <i> <em> <sup> <sub> <br> and so on

use <kbd>Win</kbd>+<kbd>L</kbd> Lock screen
copy

Lock the screen with Win+L

Escape

Markdown uses many special symbols to indicate specific meanings. If you need to display specific symbols, you need to use backslash \ to escape special characters

**Text bold** 
\*\* The asterisk is displayed normally \*\*
copy

Text bold **The asterisk is displayed normally**

formula

When you need to insert a mathematical formula in the editor, you can use two dollar symbols $$to wrap the mathematical formula in TeX or LaTeX format. After submission, the question and answer and article pages will load Mathjax to render the mathematical formula as required.

$$ x > y $$

$$ E=mc^2 $$

$$ \sin(\alpha)^{\theta}=\sum_{i=0}^{n}(x^i + \cos(f)) $$
copy

x>yx > y x>y

E=mc2E=mc^2 E=mc2

sin⁡(α)θ=∑i=0n(xi+cos⁡(f))\sin(\alpha)^{\theta}=\sum_{i=0}^{n}(x^i + \cos(f)) sin(α)θ=i=0∑n​(xi+cos(f))

Reference:

Novice tutorial MdEditor

  1. 2333 ↩︎

Posted by ucbones on Sun, 14 Aug 2022 23:08:08 +0530