Markdown Cheat Sheet

本文最后更新于:2 年前

Markdown Cheat Sheet

Thanks for visiting The Markdown Guide!

This Markdown cheat sheet provides a quick overview of all the Markdown syntax elements. It can’t cover every edge case, so if you need more information about any of these elements, refer to the reference guides for basic syntax and extended syntax.

Basic Syntax

These are the elements outlined in John Gruber’s original design document. All Markdown applications support these elements.

Heading

1
2
3
# H1
## H2
### H3

H1

H2

H3

Bold

1
**bold text**

bold text

Italic

1
*italicized text*

italicized text

Blockquote

1
> blockquote

blockquote

Ordered List

1
2
3
1. First item
2. Second item
3. Third item
  1. First item
  2. Second item
  3. Third item

Unordered List

1
2
3
- First item
- Second item
- Third item
  • First item
  • Second item
  • Third item

Code

1
`code`

code

Horizontal Rule

1
---

1
[title](https://www.example.com)

title

Image

1
![alt text](https://cdn.jsdelivr.net/gh/Auto-SK/CDN/Sources/avatar.jpg)

alt text

Extended Syntax

These elements extend the basic syntax by adding additional features. Not all Markdown applications support these elements.

Table

1
2
3
4
| Syntax | Description |
| ----------- | ----------- |
| Header | Title |
| Paragraph | Text |
SyntaxDescription
HeaderTitle
ParagraphText

Fenced Code Block

1
2
3
4
5
6
7
```json
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
​```
1
2
3
4
5
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}

Heading ID

1
### My Great Heading {#custom-id}

My Great Heading


本博客所有文章除特别声明外,均采用 CC BY-SA 4.0 协议 ,转载请注明出处!