当前位置:网站首页>Use of markdown markup language

Use of markdown markup language

2022-06-22 03:54:00 jasonj33

Markdown Is a lightweight markup language , It only needs some simple symbols , Realize the typesetting of articles , Let the author focus more on the compilation of content

Markdown

The basic grammar is

title

# Key plus space , Followed by the title ,# The more keys , The lower the title level , most 6 individual , Some editors only have 5 individual

The paragraph

There is only one thing to note about the paragraph , You need to add two spaces when wrapping , And then go back

Insert a picture

![ Photo caption ]( Picture path )

For inserting pictures ,markdown Online editors are generally unable to get the local picture address , You can only send pictures to the Internet url link

The local editor can recognize the local image , And when you type ![]() There are already picture icons after , You can click this icon , A file selection window will pop up , Directly select the picture , It saves the trouble of inputting the image path

markdown Only the path of the image is saved , No pictures are saved after rendering , So pictures cannot be deleted , It cannot be displayed after deletion

Insert URL link

[ Link name ]( website )

Split line

— or ***

Italics In bold Delete

The italics are :* Content *

Bold is :** Content **

Bold italics is :*** Content ***

Delete is :~~ Content ~~

quote

> Key plus space , The following is the quotation ,> The more keys , The lower the level of reference

Code block

```
Code
```

form

Other grammars will not be discussed in detail , If you are interested, you can check it yourself . These mentioned above are enough for writing articles at ordinary times

Editor

Markdown Language needs to be in Markdown Editor , There are local tools , There are also online tools , The local ones are easy to use Typora, You can download various themes to use together . There is an online one that can directly copy the content to the official account article :https://md.openwrite.cn/

I am currently using an online tool ,mdnice, Baidu search

For simple typography , It can be used Markdown To write , The documentation for many tools is in Markdown Compiling , And many website articles also support Markdown To write , such as CSDN, and CSDN And Zhihu also supports importing Markdown File format file.md

Compiling Markdown The file can be saved as md Format , It can also be used. pdf or html preservation , however md Document and html The file cannot delete the picture from the path , Because what they save is the address of the picture , It is the rendering done after getting the address to form the picture effect you see , and pdf There is no such problem , It saves the picture directly in pdf In file


原网站

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