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
copy# First level title ## Secondary title ### Level 3 title #### Level 4 title ##### Level 5 title ###### Level 6 title
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
copy*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
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
copyBaidu ~~Google~~
Baidu Google
list
Unordered list
copy* Item 1 + Item 2 - Item 3
- Item 1
- Item 2
- Item 3
Ordered list
copy1. Item 1 2. Item 2 3. Item 3
- Item 1
- Item 2
- Item 3
Nested list
Two spaces
copy* Item 1 * First item: the first element of the nest * The second element of the first nested item
- Item 1
- First item: the first element of the nest
- The second element of the first nested item
task list
copy* [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
- 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
copy> block > block > Outermost layer >> First level nesting >>> Second level nesting
block block Outermost layer First level nesting Second level nesting
code
copy`code` ```java System.out.println("Hello World"); \```
code
copySystem.out.println("Hello World");
link
copy[Pixiv search](https://pixivic.com/) [My blog](https://lzw-723.github.io)
picture
copy   


form
Markdown makes tables using | to separate different cells and - to separate the header and other rows.
copy| Header | Header | | ---- | ---- | | Cell | Cell | | Cell | Cell |
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
copyuse <kbd>Win</kbd>+<kbd>L</kbd> Lock screen
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
copy**Text bold** \*\* The asterisk is displayed normally \*\*
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.
copy$$ x > y $$ $$ E=mc^2 $$ $$ \sin(\alpha)^{\theta}=\sum_{i=0}^{n}(x^i + \cos(f)) $$
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:
- 2333 ↩︎