Markdown Syntax

Thanks to The Markdown Guide!

This Markdown cheat sheet provides a quick overview of all Markdown syntax elements. Since it is impossible to cover every edge case, if you need more information about any of these elements, please consult the reference guides for Basic Syntax and Extended Syntax.

Basic Syntax

The following are the elements outlined by John Gruber in his original design document. All Markdown applications support these elements.

Headings

H1

H2

H3

Bold

Bold text

Italic

Italic text

Blockquotes

Blockquote

Ordered Lists

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

Unordered Lists

  • First item
  • Second item
  • Third item

Horizontal Rules


Strikethrough

The world is flat. ~~

Markdown Guide

Images

The magnificent north coast of Madeira

Tables

Syntax Description
Header Title
Paragraph Text

Code

const a = 1;

Code Blocks

1
2
3
4
5
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}

Task Lists

  • Write press release

  • Update website

  • Contact media

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
---
title: Markdown Syntax
date: 2026-03-28 22:00
excerpt: Some examples of Markdown syntax.
appendRawMarkdown: true
cover: /img/markus-spiske-mygLDe2KvSg-unsplash.jpg
coverInfo:
author: Markus Spiske
url: https://unsplash.com/photos/a-white-wall-with-a-clock-on-it-mygLDe2KvSg
toc: false
translations: ['zh-CN']
---

Thanks to [The Markdown Guide](https://www.markdownguide.org)!

This Markdown cheat sheet provides a quick overview of all Markdown syntax elements. Since it is impossible to cover every edge case, if you need more information about any of these elements, please consult the reference guides for [Basic Syntax](https://www.markdownguide.org/basic-syntax/) and [Extended Syntax](https://www.markdownguide.org/extended-syntax/).

## Basic Syntax

The following are the elements outlined by John Gruber in his original design document. All Markdown applications support these elements.

### Headings

# H1

## H2

### H3

### Bold

**Bold text**

### Italic

_Italic text_

### Blockquotes

> Blockquote

### Ordered Lists

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

### Unordered Lists

- First item
- Second item
- Third item

### Horizontal Rules

---

### Strikethrough

~~The world is flat.~~ ~~

### Links

[Markdown Guide](https://www.markdownguide.org)

### Images

![The magnificent north coast of Madeira](https://images.unsplash.com/photo-1619898331052-ac35cf01ec84?q=80&w=4686&auto=format&fit=crop&ixlib=rb-4.1.0&ixid=M3wxMjA3fDB8MHxwaG90by-wYWdlfHx8fGVufDB8fHx8fA%3D%3D)

### Tables

| Syntax | Description |
| ---- | ---- |
| Header | Title |
| Paragraph | Text |

### Code

`const a = 1;`

### Code Blocks

```json
{
"firstName": "John",
"lastName": "Smith",
"age": 25
}
```

### Task Lists

- [x] Write press release

- [ ] Update website

- [ ] Contact media