Markdown Cheat Sheet

The complete, up-to-date reference for Markdown syntax — from basic formatting to tables, code blocks, math, and diagrams.

GitHub Markdown Discord Markdown Markdown to PDF Table Generator
Try the Live Editor

Text Formatting

Markdown bold, italic, strikethrough, and inline code — the most used formatting elements in any Markdown document.

Emphasis
**bold text** bold text
__bold text__ bold text
*italic text* italic text
_italic text_ italic text
***bold italic*** bold italic
Strikethrough & Code
~~strikethrough~~ strikethrough
`inline code` inline code
==highlight== highlighted text (some parsers)
^superscript^ textsup (extended)

Headings

Markdown supports 6 levels of headings using the # symbol. Each level maps to an HTML h1–h6 element.

Heading Syntax
# Heading 1Heading 1
## Heading 2Heading 2
### Heading 3Heading 3
#### Heading 4Heading 4
##### Heading 5Heading 5
###### Heading 6Heading 6
Alternative Syntax (Setext)
Heading 1 ========= Heading 1
Heading 2 --------- Heading 2

Lists — Bullet, Numbered & Nested

Markdown bullet lists, numbered lists, and nested lists. Use -, *, or + for unordered lists; numbers for ordered lists.

Markdown Bullet List (Unordered)
- First item
- Second item
- Third item

* Also works
* With asterisks

+ Or plus signs
Markdown Numbered List (Ordered)
1. First item
2. Second item
3. Third item

1. Numbers don't have to be
1. in order — Markdown
1. handles it automatically
Nested List
- Item one
  - Sub-item a
  - Sub-item b
    - Deep nested
- Item two
  1. Numbered sub
  2. Numbered sub

Markdown Table

Markdown tables use pipes | and dashes - to define columns and alignment. Use colons : to set column alignment.

Markdown Syntax
| Name      | Role      | Score |
|-----------|-----------|-------|
| Alice     | Developer | 98    |
| Bob       | Designer  | 87    |
| Carol     | Manager   | 92    |


| Left | Center | Right |
|:-----|:------:|------:|
| L    |   C    |     R |
Rendered Result
NameRoleScore
AliceDeveloper98
BobDesigner87
CarolManager92

Tip: Use our live editor to generate and preview tables instantly.

Markdown Code Block

Use triple backticks