当前位置:网站首页>Markdown syntax summary

Markdown syntax summary

2022-06-23 21:22:00 Star ten weaves

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

Markdow brief introduction

Markdown Language in 2004 By John · Gruber ( English :John Gruber) establish .

Markdown The written documents can be exported HTMLWord、 Images 、PDFEpub And so on .

Markdown The suffix of the document is .md, .markdown

Basic grammar

title

#  First level title 
##  Secondary title 
###  Three level title 
####  The fourth level title 
#####  Five level titles 
######  Six level title 

The paragraph

Markdown There is no special format for paragraphs , Just write directly , The line feed of a paragraph is to use more than two Space Add a carriage return . You can also use a... After a paragraph Blank line To start a new paragraph .

typeface

* Italic text *
_ Italic text _
** Bold text **
__ Bold text __
*** Text in bold italics ***
___ Text in bold italics ___
<u> Underlined text </u>
 Footnotes are formatted like this  [^ footnote ].
[^ footnote ]: 2333

Italic text Italic text Bold text Bold text Text in bold italics Text in bold italics Underlined text Footnotes are formatted like this [1].

Separation line

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





Delete line

 Baidu 
~~ Google ~~

Baidu Google

list

Unordered list
*  The first one is 
+  The second item 
-  The third one 
  • The first one is
  • The second item
  • The third one
Ordered list
1.  The first one is 
2.  The second item 
3.  The third one 
  1. The first one is
  2. The second item
  3. The third one
Nested list

Two Space

*  The first one is 
  *  The first element of the first nesting 
  *  The second element of the first nesting 
  • The first one is
    • The first element of the first nesting
    • The second element of the first nesting

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
  • 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 
>>  The first layer is nested 
>>>  The second layer is nested 

block block Outermost layer The first layer is nested The second layer is nested

Code

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

code

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

link

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

Pixiv Search for My blog

picture

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

![ Eight banners of biqigu ](https://s2.ax1x.com/2020/02/22/3MhWfs.jpg)

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

Markdown To make a form | To separate different cells , Use - To separate the header and other lines .

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

Header

Header

Cell

Cell

Cell

Cell

Advanced skills

HTML

be not in Markdown Covered labels , Can be used directly in the document HTML writing .

Currently supported HTML Elements have :<kbd> <b> <i> <em> <sup> <sub> <br> etc.

 Use  <kbd>Win</kbd>+<kbd>L</kbd>  Lock screen 

Use Win+L Lock screen

escape

Markdown A lot of special symbols are used to express specific meanings , If you need to display a specific symbol, you need to use a backslash \ Escapes special characters

** Bold text ** 
\*\*  The asterisk is displayed normally  \*\*

Bold text ** The asterisk is displayed normally **

The formula

When you need to insert mathematical formulas in the editor , You can use two dollar signs $$ The parcel TeX or LaTeX Form the mathematical formula to achieve . After submission , Q & A and article pages will be loaded as needed Mathjax Render the mathematical formula .

$$ x > y $$

$$ E=mc^2 $$

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

x > yx>y

E=mc^2E=mc2

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

References

Novice tutorial

MdEditor

原网站

版权声明
本文为[Star ten weaves]所创,转载请带上原文链接,感谢
https://yzsam.com/2021/12/202112250937399530.html