The Markdown cheat sheet (printable & copy-pasteable)
A practical one-page Markdown cheat sheet covering syntax, GitHub Flavored Markdown, and common gotchas. Bookmark it.
You don't need to memorize Markdown. You need a single page you can glance at while you write. Save this one.
Headings
# H1
## H2
### H3
#### H4
##### H5
###### H6
Emphasis
**bold** __also bold__
_italic_ *also italic*
~~strikethrough~~
Lists
- Bullet
- Bullet
- Nested bullet
1. First
2. Second
1. Nested
Task lists (GFM)
- [x] Done
- [ ] To do
Links and images
[Markdown Viewer](https://trymarkdownviewer.com)

Code
Inline `code` example.
```ts
// Fenced code block with syntax highlighting.
const greet = (name: string) => `Hello, ${name}!`;
```
Blockquotes
> A blockquote.
>
> > Nested blockquote.
Tables (GFM)
| Column | Aligned | Right |
| ------ | :-----: | ----: |
| Cell | Cell | Cell |
Horizontal rule
---
Footnotes (GFM)
Some text with a footnote.[^1]
[^1]: This is the footnote.
Math (KaTeX)
Inline: $a^2 + b^2 = c^2$
Block:
$$
\int_{-\infty}^{\infty} e^{-x^2}\,dx = \sqrt{\pi}
$$
Diagrams (Mermaid)
```mermaid
flowchart LR
Idea --> Draft --> Publish
```
Emoji shortcodes
:smile: :rocket: :tada: :100: :heart: :coffee: :fire: :sparkles:
Roughly 250 common shortcodes are supported, including thumbs-up (:+1:), check (:check:), warning (:warning:), and the full GitHub set.
Common gotchas
- A list needs a blank line before it.
- A code fence needs three backticks — four-backtick fences only work for nested code samples.
- Line breaks: end a line with two trailing spaces or use a blank line.
- Pipes (
|) inside table cells need to be escaped as\|. - Raw HTML works in most renderers, but be careful — many static site generators sanitize it.
Editor power features
Inside Markdown Viewer, beyond the syntax:
- Find & replace with regex —
Ctrl/⌘ + F - Beautify to normalize lists and whitespace —
Ctrl/⌘ + Shift + F - Focus mode for distraction-free writing —
Ctrl/⌘ + . - One-click PDF export — downloads directly, no print dialog
- Smart paste — rich HTML on the clipboard converts to Markdown
- Readability stats — sentence length, top words, Flesch score
More guides
- Markdown table guide — alignment, escaping, accessibility
- Markdown images — sizing, hosting, alt text
- Markdown links — internal, external, anchors
- Markdown code blocks — syntax highlighting in 150+ languages
- Markdown vs HTML — when to use which
Test it live
Open the editor and try every example above. Want to download this page as a .md file? Click Export → Download .md in the toolbar. Want a printable PDF? Click Export → PDF.
Written by Markdown Viewer Team. Found this useful? Try the editor →
Keep reading
Hand-picked articles related to this one.
Markdown vs HTML — how they differ, which is faster to write, which works where, and a practical decision framework for picking the right tool every time.
Five reliable ways to convert Markdown to PDF — browser print, Pandoc, VS Code, Marp, and cloud APIs. Pros, cons, and which to pick for your workflow.
A complete reference for Discord Markdown — bold, italics, code blocks, spoilers, headers, lists, quotes, and the hidden tricks power users rely on every day.