Markdown Cheat Sheet
Every markdown syntax feature in one place. 35+ examples with copy-paste syntax and live previews — from basic formatting to advanced extensions.
Quick Reference
All markdown syntax at a glance.
| Feature | Syntax | Notes | |
|---|---|---|---|
| Bold | **text** | Double asterisks | |
| Italic | *text* | Single asterisks or underscores | |
| Bold Italic | ***text*** | Triple asterisks | |
| Strikethrough | ~~text~~ | Double tildes (GFM) | |
| Highlight | ==text== | Double equals (extended) | |
| Heading 1 | # Heading | Hash + space | |
| Heading 2 | ## Heading | Two hashes | |
| Heading 3 | ### Heading | Three hashes | |
| Heading 4 | #### Heading | Four hashes | |
| Heading 5 | ##### Heading | Five hashes | |
| Heading 6 | ###### Heading | Six hashes | |
| Inline Link | [text](url) | Text in brackets, URL in parens | |
| Reference Link | [text][id] | Define [id]: url elsewhere | |
| Image |  | Like link with ! prefix | |
| Image with Title |  | Title shown on hover | |
| Inline Code | `code` | Single backticks | |
| Code Block | ```\ncode\n``` | Triple backticks | |
| Syntax Highlighting | ```lang\ncode\n``` | Language after backticks | |
| Blockquote | > text | Greater-than sign | |
| Nested Blockquote | >> text | Double greater-than | |
| Unordered List | - item | Dash, asterisk, or plus | |
| Ordered List | 1. item | Number + period | |
| Nested List | - item | Indent with 2-4 spaces | |
| Task List | - [ ] task | Checkbox (GFM) | |
| Basic Table | | A | B | | Pipes + header separator | |
| Horizontal Rule | --- | Three dashes, asterisks, or underscores | |
| Line Break | two spaces + Enter | Or use <br> tag | |
| Footnote | text[^1] | Define [^1]: note at bottom | |
| Definition List | term\n: definition | Colon + space (extended) | |
| Abbreviation | *[abbr]: Full | Auto-expands in text (extended) | |
| Escape Character | \*text\* | Backslash before special chars |
Text Formatting
Inline styles for emphasis, strikethrough, and highlighting.
Bold
Make text bold with double asterisks or double underscores
Italic
Make text italic with single asterisks or single underscores
Bold Italic
Combine bold and italic with triple asterisks
Strikethrough
Cross out text with double tildes (GFM extension)
Highlight
Highlight text with double equals (extended syntax)
Headings
Six levels of headings from h1 (largest) to h6 (smallest). Always put a space after the hash.
Headings (h1–h6)
Use 1–6 hash characters for heading levels
Links & Images
Inline links, reference-style links, and images with alt text.
Inline Link
Clickable link with custom text
Reference Link
Define link URLs separately for cleaner text
Image
Embed an image with alt text
Image with Title
Image with hover tooltip
Code
Inline code spans, fenced code blocks, and syntax highlighting.
Inline Code
Highlight code within a sentence
printf() functionCode Block
Multi-line code in a fenced block
Syntax Highlighting
Add a language identifier after the opening backticks
Blockquotes
Quote text with single or nested blockquotes.
Blockquote
Quote a block of text
It can span multiple lines.
Nested Blockquote
Nest quotes inside quotes
Lists
Unordered, ordered, nested, and task lists.
Unordered List
Use dashes, asterisks, or plus signs
- First item
- Second item
- Third item
Ordered List
Use numbers followed by periods
- First item
- Second item
- Third item
Nested List
Indent sub-items with 2–4 spaces
- Parent item
- Child item
- Child item
- Another parent
- Numbered child
- Numbered child
Task List
Checkboxes for to-do items (GFM extension)
- Write the docs
- Review the code
- Deploy to production
Tables
Create tables with pipes and dashes. GFM extension supported on most platforms.
Basic Table
Columns separated by pipes with a header separator row
| Feature | Syntax |
|---|---|
| Bold | **text** |
| Italic | *text* |
Table with Alignment
Use colons in the separator row to control alignment
| Left | Center | Right |
|---|---|---|
| A | B | C |
| D | E | F |
Horizontal Rules & Line Breaks
Thematic breaks and explicit line breaks.
Horizontal Rule
Three or more dashes, asterisks, or underscores on their own line
Line Break
End a line with two spaces or a backslash for a hard break
Second line
Third line
Advanced
Extended syntax supported by many markdown processors.
Footnotes
Add references that link to notes at the bottom
Definition List
Term followed by a colon-prefixed definition (extended syntax)
- Markdown
- A lightweight markup language
- HTML
- HyperText Markup Language
Abbreviations
Define abbreviations that auto-expand on hover (extended syntax)
Escaping Characters
Use backslash to display literal special characters
# not a heading
[not a link]
Pro Tips
Separate paragraphs with a blank line. Single line breaks within a paragraph are ignored — the text will flow together as one paragraph.
End a line with two spaces for a hard line break (<br>). Or use a backslash at the end of a line. A single Enter key alone does not create a visible break in most parsers.
You can nest lists, blockquotes, and other block elements multiple levels deep. Indent with 2-4 spaces (or a tab) per nesting level. Most renderers support at least 3 levels.
Control column alignment in the separator row: :--- for left, :---: for center, ---: for right. The default is left-aligned.
| Left | Center | Right | | :--- | :----: | ----: | | A | B | C |
Most markdown renderers allow inline HTML. Use <details>, <summary>, <kbd>, <sub>, <sup>, and other tags when markdown syntax is insufficient.
<details> <summary>Click to expand</summary> Hidden content here. </details>
Stack inline styles freely: ***bold italic***, ~~**strikethrough bold**~~, or even `**code does not nest**`. Note that formatting does not apply inside code spans.
Frequently asked questions
Everything you need to know.
What is markdown?
Markdown is a lightweight markup language created by John Gruber in 2004. It lets you add formatting — headings, bold, italic, links, images, code blocks, and more — to plain text using simple syntax characters like # * [] and ```. Markdown files use the .md or .markdown extension and are widely used for documentation, README files, blogs, and note-taking.
Step-by-Step Guides
Deep dives into every markdown syntax — with examples and platform notes.
Ready to format your markdown?
Paste any markdown into our editor. Preview with professional themes. Export to PDF or HTML in one click.