Markdown Cheat Sheet
A searchable, printable Markdown reference — headings, lists, links, images, code blocks, tables and GitHub-flavored extras. Free.
Basic syntax
12# Heading 1
## Heading 2
### Heading 3
**bold text**
*italic text*
***bold italic***
`inline code`
Heading 1
=========
Heading 2
---------
Line one
Line two
Line one\
Line two
Paragraph one.
Paragraph two.
Lists
10- item
- item
1. first
2. second
1. first
1. second
- parent
- nested child
1. step
continued paragraph
- item
- item
1) first
2) second
3. starts at three
- item
code in list
4\. Not a list.
Links & images
10[text](https://example.com)
[text](https://example.com "Title")
<https://example.com>
<mail@example.com>


[](https://example.com)
[relative link](../docs/page.md)
[section link](#heading-anchor)
[text](https://example.com/my%20page)
Code & code blocks
11`code`
``use `backticks` inside``
```
plain block
```
```js
console.log('hi');
```
```php
echo 'hi';
```
```python
print('hi')
```
```bash
ls -la
```
```json
{"key": "value"}
```
```diff
- removed
+ added
```
````
```
nested fence
```
````
indented 4 spaces
Tables
10| A | B |
|---|---|
| 1 | 2 |
|:---|
|:---:|
|---:|
A | B
--- | ---
1 | 2
| `code` | **bold** |
| a \| b |
| [link](url) |  |
| Long header | x |
|---|---|
| line<br>break |
Blockquotes & rules
9> quoted text
> level one
>> level two
> para one
>
> para two
> ### Heading
> - list item
---
***
___
text
---
text
> — Author Name
GitHub-flavored extras
12- [ ] todo item
- [x] done item
~~strikethrough~~
Text[^1]
[^1]: Footnote body.
> [!NOTE]
> [!TIP]
> [!IMPORTANT]
> [!WARNING]
> [!CAUTION]
@username
#123
:tada: :rocket: :bug:
https://example.com
Escaping & HTML
11\*not italic\*
\\
\# not a heading
\[not a link\]
\`not code\`
<kbd>Ctrl</kbd> + <kbd>C</kbd>
<br>
<sub>sub</sub> <sup>sup</sup>
<details>
<summary>Title</summary>
Body
</details>
<!-- hidden comment -->
& < >
Advanced
10## My Section → #my-section
[text][ref]
[ref]: https://example.com "Title"
[text][]
![alt][logo]
Term
: Definition text
<a id="custom-anchor"></a>
[Back to top](#top)
---
title: Page
---
Heading {#custom-id}
Mermaid & math fences
10```mermaid
graph TD; A-->B;
```
```mermaid
sequenceDiagram
A->>B: Hi
```
```mermaid
pie
"A": 60
"B": 40
```
```mermaid
gantt
task :a1, 2026-01-01, 7d
```
```mermaid
erDiagram
USER ||--o{ ORDER : places
```
$E = mc^2$
$$
\frac{a}{b}
$$
```math
\sqrt{x^2 + y^2}
```
$\alpha \beta \gamma$
$x_{i}^{2}$
No entry matches “:q”.
About Markdown Cheat Sheet
This Markdown cheat sheet collects the whole syntax on one searchable page: basic syntax, lists, links and images, code and code blocks, tables, blockquotes and rules, GitHub-flavored extras, escaping and inline HTML, advanced constructs, and Mermaid and math fences.
It answers the questions that send people searching every time — how to align a table column, how to nest a list under a numbered item, how to write a task list, a footnote or a collapsible section, and which characters need escaping — with a working example on every row.
Like every cheat sheet in this group it is free and client-side: filter rows live with the search box, hop between sections with the sticky table of contents, copy any snippet with one click and print the page for reference while you write.
How to use Markdown Cheat Sheet
- Open the sheet and review the sections, from Basic syntax and Lists to Mermaid & math fences.
- Search for a keyword such as table, task list or footnote to filter every row live.
- Jump to GitHub-flavored extras for the syntax that only works on GitHub and similar platforms.
- Click a snippet or its copy icon to copy the Markdown to your clipboard.
- Use Print for a paper copy of the full Markdown reference.