Skip to content

Markdown Cheat Sheet

Thanks for visiting The Markdown Guide!

This Markdown cheat sheet provides a quick overview of all the Markdown syntax elements. It can’t cover every edge case, so if you need more information about any of these elements, refer to the reference guides for basic syntax and extended syntax.

Basic Syntax

These are the elements outlined in John Gruber’s original design document. All Markdown applications support these elements.

Heading

md
# H1

## H2

### H3

Bold

md
**bold text**

Italic

md
_italicized text_

Blockquote

md
> blockquote

Ordered List

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

Unordered List

md
- First item
- Second item
- Third item

Code

md
`code`

Horizontal Rule

md
---
md
[Markdown Guide](https://www.markdownguide.org)

Image

md
![alt text](https://www.markdownguide.org/assets/images/tux.png)

Extended Syntax

These elements extend the basic syntax by adding additional features. Not all Markdown applications support these elements.

Table

md
| Syntax    | Description |
| --------- | ----------- |
| Header    | Title       |
| Paragraph | Text        |

Fenced Code Block

md
```

{
"firstName": "John",
"lastName": "Smith",
"age": 25
}

```

To nest code block code, use '````'.

Footnote

md
Here's a sentence with a footnote. [^1]

[^1]: This is the footnote.

Here's a sentence with a footnote. [1]

Heading ID

md
### My Great Heading {#custom-id}

Definition List

md
term
: definition
term
definition

Strikethrough

md
~~The world is flat.~~

The world is flat.

Task List

md
- [x] Write the press release
- [ ] Update the website
- [ ] Contact the media

Emoji

md
That is so funny! :joy:

That is so funny! 😂
(See also Copying and Pasting Emoji)

Highlight

md
I need to highlight these ==very important words==.

I need to highlight these ==very important words==.

Subscript

md
H~2~O

H2O

Superscript

md
X^2^

X2


  1. This is the footnote. ↩︎

Credit @Wayne19980