Markdown cheat sheet: every syntax you need

Every Markdown syntax on one page — from bold text to tables — with a live editor to test each one as you read.

Open Markdown Preview

Basic syntax

ElementSyntax
Heading# H1 · ## H2 · ### H3
Bold**bold text**
Italic*italic text*
Link[title](https://example.com)
Image![alt text](image.png)
Inline code`code`
Blockquote> quoted text
Horizontal rule---

Lists and tasks

ElementSyntax
Bullet list- item (or * item)
Numbered list1. item
Nested item - indented two spaces
Task list- [ ] todo · - [x] done

Code blocks and tables

Fence code blocks with three backticks, optionally naming the language for syntax highlighting (```js). Tables use pipes: a header row, a divider row of dashes, then data rows — | Col 1 | Col 2 | above |---|---|. Alignment colons in the divider row (:---, :---:, ---:) control left, center and right alignment.

Tools used in this guide

Related guides

Markdown cheat sheet: every syntax you need — FAQ

Wrap it in double asterisks: **like this**. Single asterisks give italic.