Markdown Cheat Sheet
Search the syntax, filter by category, copy an example, or change the sample in the live playground. The essentials are all on one page.
This interactive Markdown cheat sheet covers the syntax used in everyday documents: headings, emphasis, links, images, lists, quotes, code, and tables. Core elements work in most Markdown apps; items marked as extensions depend on the renderer.
Headings
# Page title
## Section
### SubsectionBold and italic
**bold text**
*italic text*
***both***italic text
both
Link
[descriptive label](https://example.com)Image
Bullet list
- First item
- Second item
- Nested item- First item
- Second item
- Nested item
Numbered list
1. First step
2. Second step
3. Third step- First step
- Second step
- Third step
Blockquote
> A useful quotation.A useful quotation.
Inline code
Run `npm test` before release.npm test before release.Code block
```javascript
console.log("Hello");
```console.log("Hello");Task list GFM
- [x] Finished
- [ ] Still open☐ Still open
Table GFM
| Mode | Use |
|---|---|
| Edit | Write |
| Preview | Read || Mode | Use |
|---|---|
| Edit | Write |
| Preview | Read |
Escape formatting
\*literal asterisks\*
\# not a heading# not a heading
Try Markdown in the live playground
Edit the source on the left. The lightweight preview updates immediately and covers the core syntax in this cheat sheet.
Three rules that prevent most mistakes
- Put a space after block markers. Write
## Heading, not##Heading. - Separate paragraphs and block elements with blank lines. This makes the source clearer and improves portability.
- Test extensions in the destination renderer. Tables, checkboxes, footnotes, math, and wiki links are not supported everywhere.
Core Markdown vs extensions
Headings, emphasis, links, images, blockquotes, lists, inline code, fenced code, and horizontal rules are broadly portable. Tables and task lists are associated with GitHub Flavored Markdown. Footnotes, math, wiki links, and front matter are common product extensions. Read CommonMark vs GitHub Flavored Markdown when compatibility matters.
Frequently asked questions
What syntax should a beginner learn first?
Start with headings, paragraphs, bold text, lists, links, images, and inline code. That small set covers most everyday Markdown.
Why does the same Markdown look different in another app?
Apps may use different Markdown flavors and stylesheets. The structure can be equivalent even when fonts, spacing, and colors differ.
How do I show a literal asterisk or hash?
Place a backslash before punctuation that would otherwise start formatting, such as \* or \#.
Practice Markdown in a real local editor
Hashdraft combines formatting shortcuts, syntax highlighting, live counts, and a rendered preview without moving your file to the cloud.