Markdown Cheatsheet
Quick reference guide for Markdown syntax. Click any example to copy it to your clipboard.
Quick Navigation
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
- First item
- Second item
- Sub-item
- Another sub-item
- Third item
Unordered lists using - or *
- Unordered item * Nested item * Another nested item - Another item
- Unordered item
- Nested item
- Another nested item
- Another item
Links and Images
Add links and images to your document.
Create links with optional titles
[Link text](https://example.com) [Link with title](https://example.com "Title")
Add images with alt text and optional titles
![Alt text](image.jpg) ![Alt text](image.jpg "Image title")
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 1 | Header 2 |
---|---|
Cell 1 | Cell 2 |
Cell 3 | Cell 4 |
Aligned table columns
| Left | Center | Right | |:-----|:------:|------:| |Left |Center |Right |
Left | Center | Right |
---|---|---|
Left | Center | Right |
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