Markdown Cheat Sheet

The complete Markdown cheat sheet with live preview. Syntax, examples, and interactive editor for every Markdown element.

Interactive Editor

Markdown
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
Preview

Heading 1

Heading 2

Heading 3

Heading 4

Heading 5
Heading 6
Markdown
This is a paragraph. It can span
multiple lines in the source.

This is a new paragraph after a blank line.

End a line with two spaces
to create a line break.
Preview

This is a paragraph. It can span multiple lines in the source.

This is a new paragraph after a blank line.

End a line with two spaces to create a line break.

Markdown
**bold text**
__also bold__

*italic text*
_also italic_

***bold and italic***

~~strikethrough~~
Preview

bold text also bold

italic text also italic

bold and italic

strikethrough

Markdown
Unordered list:
- Item one
- Item two
  - Nested item
  - Another nested
- Item three

Ordered list:
1. First item
2. Second item
3. Third item
   1. Sub-item
   2. Sub-item
Preview

Unordered list:

  • Item one
  • Item two
    • Nested item
    • Another nested
  • Item three

Ordered list:

  1. First item
  2. Second item
  3. Third item
    1. Sub-item
    2. Sub-item
Markdown
![Alt text](https://via.placeholder.com/150x80 "Image title")

[![Linked image](https://via.placeholder.com/100x60)](https://example.com)
Preview

Alt text

Linked image

Markdown
Inline: `const x = 42`

Fenced code block:
```javascript
function greet(name) {
  return `Hello, ${name}!`;
}
```

Indented code block:

    const a = 1;
    const b = 2;
Preview

Inline: const x = 42

Fenced code block:

function greet(name) {
  return `Hello, ${name}!`;
}

Indented code block:

const a = 1;
const b = 2;

Use colons in the separator row to align columns: left (default), center, or right.

Markdown
| Header | Header | Header |
| ------ | :----: | -----: |
| Left   | Center | Right  |
| Cell   | Cell   | Cell   |
| Cell   | Cell   | Cell   |
Preview
Header Header Header
Left Center Right
Cell Cell Cell
Cell Cell Cell
Markdown
> This is a blockquote.
>
> It can span multiple paragraphs.
>
> > Nested blockquotes are also possible.
Preview

This is a blockquote.

It can span multiple paragraphs.

Nested blockquotes are also possible.

Markdown
Three or more hyphens:

---

Three or more asterisks:

***

Three or more underscores:

___
Preview

Three or more hyphens:


Three or more asterisks:


Three or more underscores:


Markdown
- [x] Completed task
- [x] Another done item
- [ ] Incomplete task
- [ ] Another todo
Preview
  • Completed task
  • Another done item
  • Incomplete task
  • Another todo

Footnotes are an extended syntax feature supported by many processors including GitHub.

Markdown
Here is a sentence with a footnote.[^1]

Another footnote reference.[^note]

[^1]: This is the footnote content.
[^note]: Footnotes can have any label.
Preview

Here is a sentence with a footnote.[^1]

Another footnote reference.[^note]

[^1]: This is the footnote content. [^note]: Footnotes can have any label.