In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-03-28 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Development >
Share
Shulou(Shulou.com)06/02 Report--
Today, I will talk to you about how to understand Markdown grammar. Many people may not know much about it. In order to make you understand better, the editor has summarized the following for you. I hope you can get something according to this article.
1. Title
The first type of markdown can set a maximum of six-level headings. The number of the first # sign represents the level of the title, and the # sign is followed by a space.
# level 1 title # # level 2 title # level 3 title # level 4 title # level 5 title # level 6 title
Demo
First-level title, second-level title, three-level title, four-level title, five-level title, six-level title
The second one can only represent primary and secondary headings, and there is no limit to the number of = and -, as long as it is greater than one.
First level title = second level title-demo
First-level title, second-level title 2. Text style * * bold * italic * or _ italic _ * * bold italic * * ~ delete line ~ ~
Demo
Thickening
Italic
Bold italic
Delete Lin
3. List unordered list
Unordered lists can be written in three ways, using * or + or -:
Use *: * unordered list 1 * unordered list 2 * unordered list 3 use +: + unordered list 4 + unordered list 5 + unordered list 6 use -:-unordered list 7-unordered list 8-unordered list 9
Demo
Use *:
Unordered list 1
Unordered list 2
Unordered list 3
Use +:
Unordered list 4
Unordered list 5
Unordered list 6
Use -:
Unordered list 7
Unordered list 8
Unordered listing 9
Ordered list
An ordered list is preceded by numbers instead of symbols.
1. Ordered list 12. Ordered list 23. Ordered list 3
Demo
Ordered list 1
Ordered list 2
Ordered list 3
4. Quote
The format of the citation is very simple, just add > before the quoted text.
Serve the people-- Chairman Mao
Demo
Serve the people
-- Chairman Mao
5. Code block
Shorter or single-line code can be wrapped in backquotes. If there are multiple lines of code to use 3 backquotes, here I use\ to separate backquotes for escape. By the way, if you don't want some symbols to be used as markdown syntax, you can escape with\.
`short or single-line code. Multiple lines of code {print 'life is too short, I use Python'} `\ ``
Demo
Short or single-line code
Multiple lines of code {print 'life is short, I use Python'} 6. Form
Using tables in markdown is a bit of a hassle. Use | to separate different cells,-to separate headers from other rows, and: to set table alignment
:-indicates left alignment, does not add: also indicates left alignment
: -: indicates center alignment
-: indicates right alignment
| | name | age | sex | |:-|:-| | wanger | 23 | nan | | lisi | 20 | nv | | wangwu | 22 | nan | |
Demo
Nameagesexwanger23nanlisi20nvwangwu22nan7. Dividing line
You can use more than three asterisks, minus signs, and bottom lines in a line to establish a separator line, with a blank line above the separator line.
-_ * *
Demo
8. Hyperlinks and pictures
The biggest difference between the hyperlink and the picture format is that there is an extra'!'in the picture format. The title of the picture and the title of the link indicate the content that appears when your mouse points to the picture or the link description. There is a space between the title and the image address and the link address, and the title attribute can be left out.
Picture
! [picture description] (picture address "title")
Link
[link description] (link address "title")
! [Wechat official account] (/ uploads/wechat-qcode.jpg "Wechat official account") [personal blog] (https://wa5354.github.io "personal blog") after reading the above, do you have any further understanding of how to understand Markdown grammar? If you want to know more knowledge or related content, please follow the industry information channel, thank you for your support.
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 295
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.