当前位置:网站首页>Introduction to markdown grammar

Introduction to markdown grammar

2022-06-26 04:27:00 Evan Liu

One 、 title

Example :

#  This is the first level title 
##  This is the secondary title 
###  This is a three-level title 
####  This is the fourth level title 
#####  This is a five level title 
######  This is a six level title 

The effect is as follows :

This is the first level title

This is the secondary title

This is a three-level title

This is the fourth level title

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

Two 、 typeface

In bold

Left and right ** wrap up

Bold font

Italics

One on the left and one on the right * wrap up

Italics

Italics bold

Left and right three * wrap up

Italics bold

Delete line

Left and right ~~ wrap up

Delete content

3、 ... and 、 quote

Add... Before the quoted text > that will do . References can be nested , If you add two >> Three >>>,n individual >

Example :

>  Quotes 1
>>  Quotes 2
>>>  Quotes 3

The effect is as follows :

Quotes 1

Quotes 2

Quotes 3

Four 、 Split line

Three or more - perhaps * Fine

Example :

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

The effect is as follows :

The effect is the same .





5、 ... and 、 picture

grammar :

![ picture alt]( Picture address  '' picture title'')
 picture alt Is the text displayed at the bottom of the picture , It's equivalent to explaining the content of the picture 
 picture title It's the title of the picture , What is displayed when the mouse moves over the image .title Yes, but not 

Example :

  • The first one is : Reference network address

 Network picture

  • The second kind : Reference local address

[ Failed to transfer the external chain picture , The origin station may have anti-theft chain mechanism , It is suggested to save the pictures and upload them directly (img-mkOjIzAD-1620557236814)(C:\Users\15943\Desktop\java\img\1.webp “blockchain”)]

6、 ... and 、 Hyperlinks

grammar :

[ Hyperlink name ]( Hyperlink address  " Hyperlinks title")
title Yes, but not 

Example :

[ Baidu ](http://baidu.com)
ctrl +  single click   Jump to Baidu home page 

Baidu

7、 ... and 、 list

Unordered list

grammar :

-  List content 
+  List content 
*  List content 
 Be careful : - + *  There should be a space between it and the content 

The effect is as follows :

  • List content
  • List content
  • List content

Ordered list

grammar :

Digital plus dot

1.  List content 
2.  List content 
3.  List content 
 Be careful : There should be a space between the serial number and the content 

The effect is as follows :

  1. List content
  2. List content
  3. List content

List nesting

Knock one in front of the next level TAB that will do

  • Class A
    • second level
      • Level three
  • Class A
    1. second level
      2. Level three

8、 ... and 、 form

grammar :

 Header | Header | Header ---|:--:|---: Content | Content | Content | Content | The second line of content divides the header and content -  Just one , To align , You can add a few more words to the left by default - Add on both sides : Center text - Right plus : Indicates that the text is placed on the right : Use both sides of the original grammar | wrap up . Omit here 

Example :

 full name | Skill | Ranking --|:--:|--: Liu bei | cry | Elder brother Guan Yu | hit | Second brother zhangfei | scold | Third brother 

The effect is as follows :

full name Skill Ranking
Liu bei cry eldest brother
Guan yu hit Second brother
Zhang Fei scold Third brother

Nine 、 Code

grammar :

Single line code : Wrap it in an inverted quotation mark

` Code content `

Code content

Code block : Use three backquotes to enclose

​``` Code code ​```

Ten 、 flow chart

​```mermaid
flowchatst=>start:  Start box op=>operation:  Processing box cond=>condition:  Judgment box ( Yes or no ?)sub1=>subroutine:  Sub process io=>inputoutput:  I / O box e=>end:  End box st->op->condcond(yes)->io->econd(no)->sub1(right)->op&```

effect :

Created with Raphaël 2.2.0 Start box Processing box Judgment box ( Yes or no ?) I / O box End box Sub process yes no

11、 ... and 、 The formula

  1. ** In line formula (inline):** use $...$ Let's wrap up the formula , The formula will appear in the line .

a + b = c a+b=c a+b=c

  1. ** The formula between blocks (display):** use $$...$$ Let's wrap up the formula ( Be careful $$ You need to change lines after ), The formula will default to the middle of the line .

y = a x + b ; a + b = c y = ax + b; a + b= c y=ax+b;a+b=c

$$

Twelve 、typora Common shortcut key

ctrl+B In bold

lookup : Ctrl+F ctrl+H Search and replace

Insert link : ctrl+k

Insert code : ctrl+Shift+k

Insert a picture : Ctrl + Shift + I

title :Ctrl+1…

Create a table : Ctrl+T

Underline :Ctrl+u

Raise the title level :ctrl+=

Lower the title level :Ctrl±

Generate Directory :[ TOC ]+ enter

Ordered list :ctrl+shift+[

Unordered list :ctrl+shift+]

Emoticons : Colon followed by symbol

原网站

版权声明
本文为[Evan Liu]所创,转载请带上原文链接,感谢
https://yzsam.com/2022/02/202202180531291895.html