Markdown Cheatsheet

Quick reference guide for Markdown syntax. Click any example to copy it to your clipboard.

Headers

Create section headings of different levels.

Use # symbols for different heading levels
# Heading 1
## Heading 2
### Heading 3
#### Heading 4

Heading 1

Heading 2

Heading 3

Heading 4

Emphasis

Add emphasis to your text using bold and italic styles.

Use asterisks for emphasis
*italic text*
**bold text**
***bold and italic***

italic text bold text bold and italic

Alternative using underscores
_italic text_
__bold text__
___bold and italic___

italic text bold text bold and italic

Lists

Create ordered and unordered lists.

Ordered lists using numbers
1. First item
2. Second item
   - Sub-item
   - Another sub-item
3. Third item
  1. First item
  2. Second item
    • Sub-item
    • Another sub-item
  3. Third item
Unordered lists using - or *
- Unordered item
  * Nested item
  * Another nested item
- Another item
  • Unordered item
    • Nested item
    • Another nested item
  • Another item

Code

Include code snippets and blocks.

Inline code using backticks
Inline `code` in text

Inline code in text

Code blocks with syntax highlighting
```javascript
function hello() {
  console.log("Hello!");
}
```
function hello() {
  console.log("Hello!");
}

Tables

Create formatted tables.

Basic table structure
| Header 1 | Header 2 |
|----------|----------|
| Cell 1   | Cell 2   |
| Cell 3   | Cell 4   |
Header 1Header 2
Cell 1Cell 2
Cell 3Cell 4
Aligned table columns
| Left | Center | Right |
|:-----|:------:|------:|
|Left  |Center  |Right  |
LeftCenterRight
LeftCenterRight

Blockquotes

Add quoted text and citations.

Basic blockquote
> This is a blockquote
>
> It can span multiple lines

This is a blockquote

It can span multiple lines

Nested blockquotes
> First level
>> Nested quote
>>> Deeper nesting

First level

Nested quote

Deeper nesting

Additional Resources