Markdown Cheat Sheet
The complete Markdown cheat sheet with live preview. Syntax, examples, and interactive editor for every Markdown element.
Interactive Editor
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6 Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
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. 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.
**bold text**
__also bold__
*italic text*
_also italic_
***bold and italic***
~~strikethrough~~ bold text also bold
italic text also italic
bold and italic
strikethrough
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 Unordered list:
- Item one
- Item two
- Nested item
- Another nested
- Item three
Ordered list:
- First item
- Second item
- Third item
- Sub-item
- Sub-item
[Inline link](https://example.com)
[Link with title](https://example.com "Example Site")
<https://example.com>
[Reference link][1]
[1]: https://example.com "Reference" Inline: `const x = 42`
Fenced code block:
```javascript
function greet(name) {
return `Hello, ${name}!`;
}
```
Indented code block:
const a = 1;
const b = 2; 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.
| Header | Header | Header |
| ------ | :----: | -----: |
| Left | Center | Right |
| Cell | Cell | Cell |
| Cell | Cell | Cell | | Header | Header | Header |
|---|---|---|
| Left | Center | Right |
| Cell | Cell | Cell |
| Cell | Cell | Cell |
> This is a blockquote.
>
> It can span multiple paragraphs.
>
> > Nested blockquotes are also possible. This is a blockquote.
It can span multiple paragraphs.
Nested blockquotes are also possible.
Three or more hyphens:
---
Three or more asterisks:
***
Three or more underscores:
___ Three or more hyphens:
Three or more asterisks:
Three or more underscores:
- [x] Completed task
- [x] Another done item
- [ ] Incomplete task
- [ ] Another todo - Completed task
- Another done item
- Incomplete task
- Another todo
Footnotes are an extended syntax feature supported by many processors including GitHub.
Here is a sentence with a footnote.[^1]
Another footnote reference.[^note]
[^1]: This is the footnote content.
[^note]: Footnotes can have any label. Here is a sentence with a footnote.[^1]
Another footnote reference.[^note]
[^1]: This is the footnote content. [^note]: Footnotes can have any label.