Markdown Cheat Sheet: Complete Syntax Guide
A comprehensive reference for Markdown syntax covering everything from basic text formatting to advanced GitHub Flavored Markdown features.
Headings
Create headings using # symbols:
Markdown
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6Result
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Alternative Syntax
Heading 1
=========
Heading 2
---------Text Formatting
| Style | Markdown | Result |
|---|---|---|
| Bold | **bold text** or __bold text__ | bold text |
| Italic | *italic text* or _italic text_ | italic text |
| Bold + Italic | ***bold italic*** | bold italic |
| Strikethrough | ~~deleted text~~ | |
| Inline code | `code` | code |
Horizontal Rules
---
***
___
(Three or more dashes, asterisks, or underscores)Lists
Unordered Lists
- Item 1
- Item 2
- Nested item
- Another nested
- Item 3
* Also works with asterisks
+ Or plus signs- Item 1
- Item 2
- Nested item
- Another nested
- Item 3
Ordered Lists
1. First item
2. Second item
3. Third item
1. Numbers don't matter
1. Markdown renumbers them
1. Automatically- First item
- Second item
- Third item
Task Lists (GFM)
- [x] Completed task
- [ ] Incomplete task
- [ ] Another todo itemLinks & Images
Links
[Link text](https://toolsdock.com)
[Link with title](https://toolsdock.com "Hover title")
[Reference link][1]
[Another reference][website]
[1]: https://toolsdock.com
[website]: https://example.org "Website Title"
<https://toolsdock.com> (Auto-linked URL)
<email@toolsdock.com> (Auto-linked email)Images


[](https://toolsdock.com)Code
Inline Code
Use `backticks` for inline code.
To include a backtick: ``code with ` backtick``Code Blocks
```
Plain code block
No syntax highlighting
```
```javascript
// With language specified
function hello() {
console.log("Hello, World!");
}
```
```python
# Python code
def greet(name):
return f"Hello, {name}!"
```Indented Code Blocks
// Indent with 4 spaces or 1 tab
function example() {
return true;
}Common Language Identifiers
javascript, js, python, py, java, cpp, c, css, html, json, bash, shell, sql, ruby, go, rust, typescript, ts
Tables
| Header 1 | Header 2 | Header 3 |
|----------|----------|----------|
| Cell 1 | Cell 2 | Cell 3 |
| Cell 4 | Cell 5 | Cell 6 |
| Left | Center | Right |
|:-----|:------:|------:|
| L | C | R |
| Left | Center | Right |Result
| Left | Center | Right |
|---|---|---|
| L | C | R |
| Left | Center | Right |
Note: Tables are a GitHub Flavored Markdown feature, not standard Markdown.
Blockquotes
> This is a blockquote.
> It can span multiple lines.
> Blockquotes can be nested.
>> Like this.
>>> And even deeper.
> Blockquotes can contain
> - Lists
> - **Formatting**
> - `code`Result
This is a blockquote. It can span multiple lines.
Blockquotes can be nested.Like this.
GitHub Flavored Markdown (GFM)
GFM extends standard Markdown with additional features:
Task Lists
- [x] Completed task
- [ ] Incomplete taskStrikethrough
~~strikethrough text~~Autolinks
Visit https://toolsdock.com
Email me@toolsdock.com
GitHub: @username
Issue: #123Footnotes
Here's a sentence with a footnote.[^1]
[^1]: This is the footnote content.Alerts (GitHub specific)
> [!NOTE]
> Useful information
> [!TIP]
> Helpful advice
> [!WARNING]
> Important warning
> [!CAUTION]
> Potential dangerTools and Resources
Quick Reference Card
Basic
- # Heading
- **bold**
- *italic*
- `code`
- [link](url)
Lists
- - unordered
- 1. ordered
- - [x] task
Blocks
- > quote
- ``` code ```
- ---