Complete Markdown syntax reference covering headings, text formatting, links, images, lists, code blocks, tables, and extended syntax like footnotes and task lists.
| Code / Syntax | Description |
|---|---|
# Heading 1 | Top-level heading |
## Heading 2 | Second-level heading |
### Heading 3 | Third-level heading |
**bold text** | Bold text |
*italic text* | Italic text |
***bold and italic*** | Bold and italic |
~~strikethrough~~ | Strikethrough text |
> blockquote | Blockquote |
--- | Horizontal rule |
line1 \n line2 | Line break (two trailing spaces) |
| Code / Syntax | Description |
|---|---|
[text](https://url.com) | Inline link |
[text](url "title") | Link with hover title |
<https://url.com> | Auto-linked URL |
[text][ref] ... [ref]: url | Reference-style link |
 | Image |
 | Image with title |
[](url) | Linked image (image as link) |
[heading link](#section-name) | Anchor link to heading |
<user@example.com> | Auto-linked email |
| Code / Syntax | Description |
|---|---|
- Item | Unordered list item (also * or +) |
1. Item | Ordered list item |
- Nested | Nested list item (indent 3-4 spaces) |
- [x] Done | Task list checked item |
- [ ] Todo | Task list unchecked item |
1. First\n2. Second\n3. Third | Numbered list |
- Item 1\n Continued | Multi-line list item |
1. Item\n ```code``` | Code block inside list item |
| Code / Syntax | Description |
|---|---|
`inline code` | Inline code |
```\ncode block\n``` | Fenced code block |
```js\nconsole.log('hi');\n``` | Code block with syntax highlighting |
indented code | Indented code block (4 spaces) |
``code with `backtick` `` | Inline code containing backticks |
```diff\n+ added\n- removed\n``` | Diff syntax highlighting |
```json\n{"key": "value"}\n``` | JSON code block |
```bash\nnpm install\n``` | Shell command code block |
| Code / Syntax | Description |
|---|---|
| Col 1 | Col 2 |\n|-------|-------|\n| A | B | | Basic table |
| :--- | :---: | ---: | | Left, center, right alignment |
| Col | Col |\n|-----|-----| | Minimum table syntax |
| A | `code` | **bold** | | Formatting inside table cells |
| A | B |\n| C | D | | Multi-row table |
| H1 | H2 | H3 |\n|-|-|-| | Compact separator syntax |
| Link | [click](url) | | Link inside a table cell |
| Escaped \| pipe | | Escape pipe character in cell |
| Code / Syntax | Description |
|---|---|
term\n: definition | Definition list |
text[^1] ... [^1]: footnote | Footnote |
==highlighted== | Highlighted/marked text |
H~2~O | Subscript |
X^2^ | Superscript |
:emoji_name: | Emoji shortcode (platform-specific) |
<details><summary>Title</summary>Content</details> | Collapsible section (HTML) |
<!-- comment --> | HTML comment (hidden in output) |
$E = mc^2$ | Inline math (LaTeX, some renderers) |
```mermaid\ngraph LR; A-->B\n``` | Mermaid diagram (GitHub, etc.) |
Found this cheat sheet useful? Check out our other references and tools.