当前位置:网站首页>Markdown learning (entry level)
Markdown learning (entry level)
2022-07-08 01:03:00 【Light chasing rain】
Markdown Study
One 、Markdown Introduction to
Is a lightweight markup language
( Anyway, writing notes is super easy )
Typore Strongly recommend ( But there seems to be a charge )
Two 、 Paragraph and emphasis
*xax* // Italics
_xax_ // Italics
**yay** // In bold
__yay__ // In bold
~~ Delete line ~~ // Delete line
effect :
xax
xax
yay
yay
Delete line
3、 ... and 、 title
3.1 Setext Form title ( I don't like it very much )
title 1
=
title 2
-
title 1
title 2
3.2 Atx Form title ( Highly recommended )
# title 1
## title 2
#### title 4
###### title 6
title 1
title 2
title 4
title 6
Most support 6 Level title , commonly 4 Level is the limit , As far as possible 3 Level is good
Four 、 link
form 1:
[]()
[]: Put the logo text
(): Put the link
[ Baidu ](www.baidu.com)
form 2
I get 10 times more traffic from [Google][1] than from [Yahoo][2] or [MSN][3].
// It has to be a new line
[1]: http://google.com/ "Google"
[2]: http://search.yahoo.com/ "Yahoo Search"
[3]: http://search.msn.com/ "MSN Search"
I get 10 times more traffic from Google than from Yahoo or MSN.
5、 ... and 、 picture
form 1:
![]()
![Alt text](/path/to/img.jpg "Optional title")
![keyboards](/img/59/36d74027b13c5f19b7d1a0fd2838de.jpg " study hard ")
form 2:
![Alt text][id]
[id]: url/to/image "Optional title attribute"
![Git Course ][git]
// There must be a new line
[git]: /img/59/36d74027b13c5f19b7d1a0fd2838de.jpg
Markdown There is no way to specify the width and height of the picture , If necessary , have access to HTML Medium label
<img src="/img/59/36d74027b13c5f19b7d1a0fd2838de.jpg" width="300px" height="200px" alt=" study hard ">
6、 ... and 、 list
6.1 Unordered list
//+ * - The effect is the same , Unordered list
* Banana
* Apple
* Peach
+ Banana
+ Apple
+ Peach
- Banana
- Apple
- Peach
- Banana
- Apple
- Peach
- Banana
- Apple
- Peach
- Banana
- Apple
- Peach
6.2 Ordered list
1. Apple
2. Banana
3. Peach
1987\. Meijiaer // You can avoid
- Apple
- Banana
- Peach
1987. Meijiaer
6.3 Markdown The escape of
Markdown It supports adding a backslash before the following symbols to transfer , In order to be in Markdown Insert ordinary symbols in :
\ The backslash
` The quotation marks
* asterisk
_ Underline
{} Curly braces / Curly braces
[] brackets / square brackets
() parentheses / Brackets
# Well No
+ plus
- minus sign
. English full stop
! Exclamatory mark
You can nest
1. The first day
* Get out of bed
* having dinner
* Work
- Read email
- Write code
// A code block
open CODE CHINA
![ The computer ](/img/a2/cf2ab25065ec362be553715f0ec1fd.jpg)
var x =1000;
- test
- Release
* sleep
2. the second day
3. On the third day
- The first day
- Get out of bed
- having dinner
- Work
Read email
Write code
// A code block
open CODE CHINAvar x =1000;
test
Release
- sleep
- the second day
- On the third day
CSDN It may not work well
6.4 Task list
- [x] Get out of bed
- [x] having dinner
- [ ] Work
- [ ] sleep
- Get out of bed
- having dinner
- Work
- sleep
// nesting
- [x] Get out of bed
- [ ] having dinner
- [x] Boiled Egg
- [ ] to toast bread
- [ ] Hot Milk
1. [X] Work
1. [x] Read email
2. [x] Write code
3. [ ] Release
2. [ ] sleep
- Get out of bed
- having dinner
- Boiled Egg
- to toast bread
- Hot Milk
- Work
- Read email
- Write code
- Release
- sleep
7、 ... and 、 Dividing line and reference
7.1 Split line
***
---
____
7.2 quote
> Perl The inventor of language Larry Wall say , Good programmers have 3 A virtue : lazy 、 Impatience and arrogance (Laziness, Impatience and hubris).
>
> > Programmers have three virtues : lazy , Impatience and arrogance . —— **Larry Wall**
>
> lazy , It will make you make great efforts to avoid consuming too much energy . It urges you to write energy-saving programs , At the same time, others can use them . For this you will write perfect documentation , To avoid being asked too many questions .
Impatience , When you find that computers lazily don't give results . So you write better code , Can really solve the problem as soon as possible . At least it looks like this .
Arrogant , Extremely confident , To give you the confidence to write ( Or maintenance ) Procedures that no one else can fault .
>
> ## Three virtues of programmers
>
> 1. lazy
> 2. Impatience
> 3. Arrogant
>
> Here is an example of the code :
>
> return shell_exec("echo $input | $markdown_script");
Perl The inventor of language Larry Wall say , Good programmers have 3 A virtue : lazy 、 Impatience and arrogance (Laziness, Impatience and hubris).
Programmers have three virtues : lazy , Impatience and arrogance . —— Larry Wall
lazy , It will make you make great efforts to avoid consuming too much energy . It urges you to write energy-saving programs , At the same time, others can use them . For this you will write perfect documentation , To avoid being asked too many questions .
Impatience , When you find that computers lazily don't give results . So you write better code , Can really solve the problem as soon as possible . At least it looks like this .
Arrogant , Extremely confident , To give you the confidence to write ( Or maintenance ) Procedures that no one else can fault .
Three virtues of programmers
- lazy
- Impatience
- Arrogant
Here is an example of the code :
return shell_exec("echo $input | $markdown_script");
8、 ... and 、 Code block
8.1 Inline code
form :``
`asdasd`
asdasd
8.2 Indent to show code
To be in Markdown It is also easy to create code blocks in , Simply indent 4 Blank or 1 individual tab Can , for example , The following input :
This is an ordinary paragraph :
This is a code block.
Click to see Markdown Conversion effect in
This is an ordinary paragraph :
This is a code block.
This indent is one level per line (4 Blank or 1 individual tab), Will be removed , for example :
Here is a sample code :
tell application “Foo”
beep
end tell
Click to see Markdown Conversion effect in
Here is a sample code :
tell application "Foo"
beep
end tell
A block of code will continue until the line without indentation ( Or at the end of the document ).
In the code block , & 、 < and > It will automatically change to HTML Entity , This way it's very easy for you to use Markdown Insert HTML The original sample code for , for example :
<div class="footer">
© 2004 Foo Corporation
</div>
8.3 Highlight snippet
stay ``` Add the language type later
8.4 Diff grammar
var foo = 'bar'; + var x = 200; * var x = 100;
Nine 、 form
- The first row contains the header , And use " A vertical bar "( | ) Separate
- The title of the second row is separated from the cell , And must contain three or more dashes
- The third row and any subsequent rows contain cell values
It should be noted that :
- Can't be in Markdown Separate cells into rows , They must remain single line , if necessary , You can also use HTML
The tag enforces a line break on the content - The length of the second line of cells does not need to be consistent with the title , But you must use a vertical line (|) Separate
- You can have blank cells
| header 1 | header 2 | header 3 |
| --- | ------ |---------:|
| cell 1 | cell 2 | cell 3 |
| cell 4 | cell 5 is longer | cell 6 is much longer than the others, but that's ok. It will eventually wrap the text when the cell is too large for the display size. |
| cell 7 | | cell <br> 9 |
header 1 | header 2 | header 3 |
---|---|---|
cell 1 | cell 2 | cell 3 |
cell 4 | cell 5 is longer | cell 6 is much longer than the others, but that’s ok. It will eventually wrap the text when the cell is too large for the display size. |
cell 7 | cell 9 |
in addition , You can add a colon (:), Specify the text alignment for each column , such as :
| header 1 | header 2 | header 3 |
|:-------- | :------: | --------:|
| left-aligned The text is on the left | centered Center text | right-aligned The text is on the right |
| `:---` Left colon indicates ** Content and title bar ** Align left | `:--:` There are colons at both ends ** Content and title bar ** Align center | `---:` The right colon indicates ** Content and title bar ** Align right |
header 1 | header 2 | header 3 |
---|---|---|
left-aligned The text is on the left | centered Center text | right-aligned The text is on the right |
:--- Left colon indicates Content and title bar Align left | :--: There are colons at both ends Content and title bar Align center | ---: The right colon indicates Content and title bar Align right |
Ten 、 attach
10.1 List of articles
@[TOC]( The title of the catalogue can also be left blank )
10.2 The highlighted
==xixixi==
xixixi
10.3 Latex grammar
The most complete Markdown + Latex Writing skills
New skills :Markdown Use in LaTeX
边栏推荐
- Binder core API
- tourist的NTT模板
- 第四期SFO销毁,Starfish OS如何对SFO价值赋能?
- Complete model verification (test, demo) routine
- Langchao Yunxi distributed database tracing (II) -- source code analysis
- Su embedded training - Day5
- Four stages of sand table deduction in attack and defense drill
- 130. 被圍繞的區域
- Is it safe to open an account on the official website of Huatai Securities?
- y59.第三章 Kubernetes从入门到精通 -- 持续集成与部署(三二)
猜你喜欢
Analysis of 8 classic C language pointer written test questions
Jemter distributed
图像数据预处理
Su embedded training - Day9
Tapdata 的 2.0 版 ,开源的 Live Data Platform 现已发布
13.模型的保存和載入
12. RNN is applied to handwritten digit recognition
新库上线 | CnOpenData中华老字号企业名录
Complete model verification (test, demo) routine
For the first time in China, three Tsinghua Yaoban undergraduates won the stoc best student thesis award
随机推荐
Malware detection method based on convolutional neural network
Swift get URL parameters
13. Model saving and loading
Thinkphp内核工单系统源码商业开源版 多用户+多客服+短信+邮件通知
5g NR system messages
Marubeni official website applet configuration tutorial is coming (with detailed steps)
133. Clone map
SDNU_ ACM_ ICPC_ 2022_ Summer_ Practice(1~2)
1.线性回归
y59.第三章 Kubernetes从入门到精通 -- 持续集成与部署(三二)
130. 被围绕的区域
What does interface testing test?
For the first time in China, three Tsinghua Yaoban undergraduates won the stoc best student thesis award
基于微信小程序开发的我最在行的小游戏
Introduction to paddle - using lenet to realize image classification method II in MNIST
AI zhetianchuan ml novice decision tree
130. Zones environnantes
The method of server defense against DDoS, Hangzhou advanced anti DDoS IP section 103.219.39 x
Redis, do you understand the list
CVE-2022-28346:Django SQL注入漏洞