Markdown cheatsheet

Every markdown syntax, next to what it becomes.

The full markdown reference on one page: what you type on the left, what readers see on the right. Copy any snippet, or open the full guide for each element.

Headings

Full guide →

One to six # signs at the start of a line, followed by a space. More signs, smaller heading.

You type
# Heading 1
## Heading 2
### Heading 3
You get
Heading 1
Heading 2
Heading 3

Bold & italic

Full guide →

Asterisks around the text: two for bold, one for italic, three for both. Two tildes for strikethrough.

You type
**bold text**

*italic text*

***bold and italic***

~~strikethrough~~
You get

bold text

italic text

bold and italic

strikethrough

- for bullets, 1. for numbers. Indent by two or more spaces to nest.

You type
- First item
- Second item
  - Nested item

1. Step one
2. Step two
You get
  • First item
  • Second item
    • Nested item
  1. Step one
  2. Step two

Checkboxes (task lists)

Full guide →

A list item with [ ] for an open task, [x] for a done one.

You type
- [x] Write the draft
- [ ] Review it
- [ ] Publish
You get
  • Write the draft
  • Review it
  • Publish

The text in square brackets, the URL in parentheses. Bare URLs in angle brackets become clickable too.

You type
[maxdown](https://maxdown.app)

<https://maxdown.app>

Like a link, with a ! in front. The bracket text becomes the alt text.

You type
![The maxdown logo](logo.svg)
You get
The maxdown logo

Backticks around inline code; three backticks (a fence) around a block, with an optional language for highlighting.

You type
Run `npm install` first.

```js
const x = 42;
```
You get

Run npm install first.

const x = 42;

Blockquotes

Full guide →

A > at the start of the line. Stack them for nested quotes.

You type
> Writing is thinking.
> Rewriting is understanding.
You get

Writing is thinking. Rewriting is understanding.

Pipes separate columns; a row of dashes separates the header. Colons control alignment.

You type
| Feature | Status |
| ------- | :----: |
| Tables  |  done  |
| Charts  |  soon  |
You get
FeatureStatus
Tablesdone
Chartssoon

Line breaks & paragraphs

Full guide →

A blank line starts a new paragraph. Two spaces at the end of a line (or a backslash) force a single line break.

You type
First paragraph.

Second paragraph, where a backslash\
forces a line break.
You get

First paragraph.

Second paragraph, where a backslash
forces a line break.

Horizontal rules

Full guide →

Three or more dashes, asterisks, or underscores on their own line, with blank lines around them.

You type
Above the line.

---

Below the line.
You get

Above the line.


Below the line.

Escaping characters

Full guide →

A backslash before a markdown character displays it literally instead of formatting.

You type
\*not italic\*

\# not a heading
You get

*not italic*

# not a heading

Beyond the basics

Syntax that goes past the core spec, and what to reach for when markdown doesn't have it.

Guides

Around the syntax: what markdown is, and how to get files in and out of it.

Opening a .md file

You have a markdown file and it opened as a wall of symbols. Nothing is broken; it just isn't being rendered.

Or skip the syntax entirely

This whole page exists because markdown is easy to write but easy to forget. maxdown renders every one of these elements in place as you type, so the syntax disappears the moment you move to the next line, and comes back only when your cursor lands on it. You still write plain .md files; you just stop looking them up.

Less syntax. More writing.

Download maxdown

Free · no account · macOS, Windows & Linux