Markdown Cheatsheet
A quick reference for Markdown syntax — formatting, links, code, tables, and more.
Headings
Heading 1
# Heading 1
Top-level heading
Heading 2
## Heading 2
Second-level heading
Heading 3
### Heading 3
Third-level heading
Heading 4
#### Heading 4
Fourth-level heading
Heading 5
##### Heading 5
Fifth-level heading
Heading 6
###### Heading 6
Sixth-level heading
Text Formatting
Bold
**bold text**
Wraps text in double asterisks
Italic
*italic text*
Wraps text in single asterisks
Bold & Italic
***bold italic***
Triple asterisks
Strikethrough
~~strikethrough~~
Double tilde on both sides
Inline Code
`code`
Single backticks for inline code
Lists
Unordered List
- Item 1 - Item 2 - Nested Item
Use -, *, or + for unordered items
Ordered List
1. First 2. Second 3. Third
Numbers followed by periods
Task List
- [x] Done - [ ] Pending
Checkboxes with [ ] or [x]
Links & Images
Link
[text](https://example.com)
Link text in brackets, URL in parens
Image

Exclamation, alt text in brackets, URL in parens
Reference Link
[text][ref] [ref]: https://example.com
Define reference elsewhere in the document
Code Blocks
Fenced Code Block
```python
print('Hello')
```Triple backticks with optional language
Indented Code Block
def hello():
print('hi')Indent with 4 spaces
Blockquotes
Simple Quote
> This is a quote
Prefix with >
Nested Quote
> Level 1 >> Level 2
Double >> for nested quotes
Quote with Other Elements
> **Bold** inside a quote
Other formatting works inside quotes
Tables
Simple Table
| Name | Age | |------|-----| | Alice| 30 |
Pipes and dashes to separate columns and header
Right-Aligned Column
| Left | Right | |:-----|------:| | A | B |
Colon on right side for right alignment
Center-Aligned Column
| Center | |:------:| | X |
Colons on both sides for center alignment
Horizontal Rules
Three Dashes
---
Three or more dashes
Three Asterisks
***
Three or more asterisks
Three Underscores
___
Three or more underscores
Miscellaneous
Escaping
\*not italic\*
Backslash before special characters
Subscript
H~2~O
Tilde around text
Superscript
X^2^
Caret around text
Footnote
Here is text[^1] [^1]: Footnote content
Bracket with caret and number