Markdown is a lightweight markup language that you can use to add formatting elements to plaintext text documents. Created by John Gruber in 2004, Markdown is now one of the world’s most popular markup languages.
¶Headers
1 | # H1 |
# H1
## H2
¶H3
¶H4
¶H5
¶H6
¶Paragraphs
1 | Do irure excepteur duis consectetur nostrud sit in adipisicing velit labore ea veniam excepteur qui. |
Do irure excepteur duis consectetur nostrud sit in adipisicing velit labore ea veniam excepteur qui.
Nulla do mollit culpa in labore culpa commodo ipsum quis. Nostrud nostrud ea sunt ea.
¶Emphasis
- 粗体 Bold
1 | Velit culpa **officia** non et anim proident sint aliquip. |
Velit culpa officia non et anim proident sint aliquip.
Elit sit qui occaecat dolor velit dolor cupidatat ex quis.
- 斜体 Italic
1 | Ut esse duis pariatur eiusmod *adipisicing* minim eiusmod aliquip. |
Ut esse duis pariatur eiusmod adipisicing minim eiusmod aliquip.
Proident esse consequat ullamco commodo nostrud id irure adipisicing sint esse cupidatat ea nostrud.
- 粗体 Bold 和 斜体 Italic
1 | Fugiat ullamco esse commodo ***commodo*** consequat eiusmod sit non dolore. |
Fugiat ullamco esse commodo commodo consequat eiusmod sit non dolore.
Duis nulla velit exercitation laborum adipisicing sit incididunt laboris quis amet id ex nisi.
Sit dolore fugiat eu est voluptate.
Laboris fugiat irure do pariatur aute dolor cupidatat fugiat nostrud.
¶Blockquotes
- Markdown 使用>符号对Blockquotes进行标记
1 | > Magna quis nulla et id proident ex enim. Commodo duis |
Magna quis nulla et id proident ex enim. Commodo duis
incididunt laboris aute labore proident minim aliquip
laborum. Adipisicing aliquip minim nisi magna in eu ullamco.
Excepteur ea esse consectetur eiusmod magna eu reprehenderit
elit ad eu voluptate. Pariatur tempor sit minim do aute.
Quis incididunt esse consequat elit est nulla eu. Mollit
minim tempor quis et incididunt ut.
- BlockQuotes 支持嵌套应用
1 | > |
Et esse in nostrud cupidatat veniam ex.
Dolor do elit quis sit do quis consequat fugiat nulla non laboris id et.
Et ex quis voluptate velit do excepteur aute ad.
¶Lists
- 无序列表 Unordered list:
1 | * Red |
- Red
- Green
- Blue
- Red
- Green
- Blue
- Red
- Green
- ForestGreen
- Blue
- SkyBlue
- 有序列表 Ordered list:
1 | 1. Ut ea dolor labore do. |
- Ut ea dolor labore do.
- Lorem officia Lorem ipsum consectetur sunt qui commodo velit.
- Labore adipisicing ipsum Lorem veniam exercitation amet aute ea.
- Magna duis quis veniam commodo adipisicing nisi nulla quis nulla deserunt.
- Velit ex dolor ea irure irure esse nostrud proident anim adipisicing cillum do nisi.
¶Code Blocks
- Code
1 | Use the `printf()` function |
Use the printf()
function
- Fenced Code Block
1 | ``` |
1 | Console.WriteLine("hello world"); |
1 | ~~~ |
1 | Console.WriteLine("hello world"); |
- Fenced Code Block with highlight syntax
1 | ```csharp |
1 | Console.WriteLine("hello world"); |
1 | ```fsharp |
1 | let pi = 3.14 |
¶Horizontal Rules
单独一行使用3个或以上星号asterisks(***)、连接符dashes(—)或下划线underscores(___)
1 | ------ |
¶Links
- Links
1 | 我喜爱的搜索引擎是[Google](https://www.google.com) |
我喜爱的搜索引擎是 Google
- Links with title
1 | 我喜爱的搜索引擎是 [Google](https://www.google.com "Most used search engine on the World Wide Web") |
我喜爱的搜索引擎是 Google
- Quick links
1 | <https://www.google.com> |
- Emphasis links
1 | 我喜爱的搜索引擎是 **[Google](https://www.google.com "Most used search engine on the World Wide Web")** |
我喜爱的搜索引擎是 Google
我喜爱的搜索引擎是 Google