Last week I saw a colleague of mine insert a beautiful piece of code in a note line. I was curious and asked her how you did it. She smiled “Markdown “. Although I have heard this term before, but it has not been used, today I have a break, just use 3 minutes to sum up.

1. What is markdown

Markdown is a lightweight markup language that allows people to write documents in plain text format that is easy to read and write, and then convert them into valid XHTML (or HTML) documents.

2, the markdown syntax

In fact, the basic usage is shown below

1, bold & italic bold :** text **, italic :** text *, bold + italic :*** text **

2, delete line & underline delete line :~~ text ~~, slide line :++ text ++

# 3, title level title: text, secondary title: # # text, level 3 title: # # # text, level 4 title: # # # text, five title: # # # # # text, six levels of headings: # # # # # # text

4, dividing line Dividing line :–

5, quote quote :> text

6, unordered list unordered list :- text

7. Ordered listsUnordered list:1. The text.2. The text

8. Hyperlink hyperlink :[text description](link)

9, pictures

Image:! [Text description](Link to image)

10. Forms forms:

header 1 | header 2 | header3
---|---|---
row 1 col 1 | row 1 col 2 | row 1 col 3
row 2 col 1 | row 2 col 2 | row 2 col 3
Copy the code