Markdown Cheatsheet
This page demonstrates Markdown syntax and its rendering effects.
Headings
Markdown Code:
# Heading 1
## Heading 2
### Heading 3
#### Heading 4
##### Heading 5
###### Heading 6
Rendered Output:
Heading 1
Heading 2
Heading 3
Heading 4
Heading 5
Heading 6
Emphasis
Markdown Code:
*Italic text* or _Italic text_
**Bold text** or __Bold text__
***Bold italic text*** or ___Bold italic text___
~~Strikethrough text~~
Rendered Output:
Italic text or Italic text
Bold text or Bold text
Bold italic text or Bold italic text
Strikethrough text
Lists
Unordered List
Markdown Code:
- Item 1
- Item 2
- Subitem 2.1
- Subitem 2.2
* Item 3
+ Item 4
Rendered Output:
- Item 1
- Item 2
- Subitem 2.1
- Subitem 2.2
- Item 3
- Item 4
Ordered List
Markdown Code:
1. First item
2. Second item
1. Subitem 2.1
2. Subitem 2.2
3. Third item
Rendered Output:
- First item
- Second item
- Subitem 2.1
- Subitem 2.2
- Third item
Links & Images
Links
Markdown Code:
[Link text](https://example.com)
[Link with title](https://example.com "Title shown on hover")
Rendered Output: Link text Link with title
Images
Markdown Code:


Rendered Output:
Blockquotes
Markdown Code:
> This is a blockquote
> It can span multiple lines
>> Nested blockquote
Rendered Output:
This is a blockquote It can span multiple lines
Nested blockquote
Code
Inline Code
Markdown Code:
Use `code` for inline code
Rendered Output:
Use code for inline code
Code Blocks
Markdown Code:
```javascript
function hello() {
console.log("Hello, World!");
}
**Rendered Output:**
```javascript
function hello() {
console.log("Hello, World!");
}
Tables
Markdown Code:
| Name | Age | City |
|------|------|------|
| Zhang San | 25 | Beijing |
| Li Si | 30 | Shanghai |
| Wang Wu | 28 | Guangzhou |
Rendered Output:
| Name | Age | City |
|---|---|---|
| Zhang San | 25 | Beijing |
| Li Si | 30 | Shanghai |
| Wang Wu | 28 | Guangzhou |
Horizontal Rules
Markdown Code:
---
***
___
Rendered Output:
Task Lists
Markdown Code:
- [x] Completed task
- [ ] Incomplete task
- [ ] Another incomplete task
Rendered Output:
- Completed task
- Incomplete task
- Another incomplete task
Footnotes
Markdown Code:
This is text with a footnote[^1].
[^1]: This is the footnote content.
Rendered Output: This is text with a footnote1.