Markdown Cheatsheet
A quick reference for all Markdown syntax — headings, emphasis, links, code blocks, tables, task lists, and more.
This page is a quick reference for all standard Markdown syntax — from headings to task lists. Every example below is interactive: paste it directly into the Markdown Preview to see the rendered output. New to Markdown? Start with What is Markdown? first.
Headings
Use 1–6 hash characters followed by a space. The number of hashes sets the heading level.
| Markdown | Rendered as |
|---|---|
# Heading 1 | Heading 1 |
## Heading 2 | Heading 2 |
### Heading 3 | Heading 3 |
#### Heading 4 | Heading 4 |
Text formatting
| Markdown | Result | Notes |
|---|---|---|
**bold** | bold | Also __bold__ |
*italic* | italic | Also _italic_ |
***bold italic*** | bold italic | |
~~strikethrough~~ | GFM extension | |
`inline code` | inline code | |
==highlight== | highlight | Not all parsers |
Links and images
| Markdown | Result |
|---|---|
[text](https://example.com) | text |
[text](url "tooltip") | text with tooltip |
<https://example.com> | https://example.com (auto-link) |
 | 🖼 image (alt text) |
[](url) | 🖼 clickable image |
Reference-style links: define [label]: url anywhere in the document and use [text][label] inline. Useful when the same URL appears multiple times.
Lists
- Apple - Banana - Cherry
- Apple
- Banana
- Cherry
1. First 2. Second 3. Third
- First
- Second
- Third
- [x] Done - [ ] Todo - [ ] Later
- ✅ Done
- ⬜ Todo
- ⬜ Later
- Parent
- Child
- Grandchild- Parent
- Child
- Grandchild
- Child
Code
| Markdown | Result |
|---|---|
`inline code` | inline code |
```js … ``` | Fenced block with syntax highlighting |
4-space indent | Also a code block (legacy style) |
```javascript
const greet = (name) => `Hello, ${name}!`
console.log(greet('World'))
```Tables
Separate columns with |. The second row must be a separator with at least three dashes per cell.
| Name | Type | Required | |--------|--------|----------| | id | number | yes | | email | string | yes | | avatar | string | no |
Add a colon to the separator to control alignment: :--- left · :---: center · ---: right.
Blockquotes and horizontal rules
| Markdown | Renders as |
|---|---|
> A blockquote | A blockquote |
> Multi-line | Multi-line |
--- or *** |
Escaping special characters
Prefix any Markdown character with a backslash to render it literally:
| You type | You get |
|---|---|
\*not italic\* | *not italic* |
\# not a heading | # not a heading |
\[not a link\] | [not a link] |
\`not code\` | `not code` |
Escapable characters: \ ` * _ { } [ ] ( ) # + - . !
Line breaks and paragraphs
Leave a blank line between two blocks of text. A single newline within a paragraph is treated as a space.
End a line with two or more spaces, then press Enter. Or use a backslash \ at the end of the line (most modern parsers support this).
Try it now