Skip to content
Free · No signup · Instant

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.

35+ examplesCopy-paste readyUpdated 2026Free forever

Quick Reference

All markdown syntax at a glance.

FeatureSyntax
Bold**text**
Italic*text*
Bold Italic***text***
Strikethrough~~text~~
Highlight==text==
Heading 1# Heading
Heading 2## Heading
Heading 3### Heading
Heading 4#### Heading
Heading 5##### Heading
Heading 6###### Heading
Inline Link[text](url)
Reference Link[text][id]
Image![alt](url)
Image with Title![alt](url "title")
Inline Code`code`
Code Block```\ncode\n```
Syntax Highlighting```lang\ncode\n```
Blockquote> text
Nested Blockquote>> text
Unordered List- item
Ordered List1. item
Nested List - item
Task List- [ ] task
Basic Table| A | B |
Horizontal Rule---
Line Breaktwo spaces + Enter
Footnotetext[^1]
Definition Listterm\n: definition
Abbreviation*[abbr]: Full
Escape Character\*text\*

Text Formatting

Inline styles for emphasis, strikethrough, and highlighting.

Bold

Make text bold with double asterisks or double underscores

Result
bold text

Italic

Make text italic with single asterisks or single underscores

Result
italic text

Bold Italic

Combine bold and italic with triple asterisks

Result
bold italic text

Strikethrough

Cross out text with double tildes (GFM extension)

Result
strikethrough text

Highlight

Highlight text with double equals (extended syntax)

Result
highlighted text

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

Result
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6

Code

Inline code spans, fenced code blocks, and syntax highlighting.

Inline Code

Highlight code within a sentence

Result
Use the printf() function

Code Block

Multi-line code in a fenced block

Result
function hello() {\n console.log('world')\n}

Syntax Highlighting

Add a language identifier after the opening backticks

Result
def greet(name):\n return f"Hello, {name}!"

Blockquotes

Quote text with single or nested blockquotes.

Blockquote

Quote a block of text

Result
This is a blockquote.
It can span multiple lines.

Nested Blockquote

Nest quotes inside quotes

Result
Outer quote
Inner nested quote
Third level

Lists

Unordered, ordered, nested, and task lists.

Unordered List

Use dashes, asterisks, or plus signs

Result
  • First item
  • Second item
  • Third item

Ordered List

Use numbers followed by periods

Result
  1. First item
  2. Second item
  3. Third item

Nested List

Indent sub-items with 2–4 spaces

Result
  • Parent item
    • Child item
    • Child item
  • Another parent
    1. Numbered child
    2. Numbered child

Task List

Checkboxes for to-do items (GFM extension)

Result
  • 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

Result
FeatureSyntax
Bold**text**
Italic*text*

Table with Alignment

Use colons in the separator row to control alignment

Result
LeftCenterRight
ABC
DEF

Horizontal Rules & Line Breaks

Thematic breaks and explicit line breaks.

Horizontal Rule

Three or more dashes, asterisks, or underscores on their own line

Result
Some text above

Some text below

Line Break

End a line with two spaces or a backslash for a hard break

Result
First line
Second line
Third line

Advanced

Extended syntax supported by many markdown processors.

Footnotes

Add references that link to notes at the bottom

Result
Here is a statement[1] with a footnote.
1 This is the footnote content.

Definition List

Term followed by a colon-prefixed definition (extended syntax)

Result
Markdown
A lightweight markup language
HTML
HyperText Markup Language

Abbreviations

Define abbreviations that auto-expand on hover (extended syntax)

Result
The HTML specification is maintained by the W3C.

Escaping Characters

Use backslash to display literal special characters

Result
*not italic*
# not a heading
[not a link]

Pro Tips

1Paragraph Spacing

Separate paragraphs with a blank line. Single line breaks within a paragraph are ignored — the text will flow together as one paragraph.

2Soft vs Hard Breaks

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.

3Nesting Depth

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.

4Table Alignment

Control column alignment in the separator row: :--- for left, :---: for center, ---: for right. The default is left-aligned.

| Left | Center | Right |
| :--- | :----: | ----: |
| A    |   B    |     C |
5HTML Fallback

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>
6Combining Formatting

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.

1

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.

Ready to format your markdown?

Paste any markdown into our editor. Preview with professional themes. Export to PDF or HTML in one click.