Headings
| Syntax | Description |
|---|---|
# Heading 1 | Largest heading (H1) |
## Heading 2 | Section heading (H2) |
### Heading 3 | Subsection (H3) |
#### Heading 4 | Small heading (H4) |
##### Heading 5 | Smaller heading (H5) |
###### Heading 6 | Smallest heading (H6) |
Text Formatting
| Syntax | Description |
|---|---|
**bold** | Bold text |
*italic* | Italic text |
***bold italic*** | Bold and italic |
~~strikethrough~~ | Strikethrough |
`inline code` | Inline code |
<sup>superscript</sup> | Superscript |
<sub>subscript</sub> | Subscript |
Lists
| Syntax | Description |
|---|---|
- item | Unordered list |
* item | Unordered list (alternative) |
1. item | Ordered list |
- child | Nested list (2 spaces) |
- [ ] task | Checkbox (unchecked) |
- [x] task | Checkbox (checked) |
Links and Images
| Syntax | Description |
|---|---|
[text](URL) | Hyperlink |
[text](URL "title") | Link with title |
<URL> | Auto link |
 | Image |
 | Image with title |
[ref][id] → [id]: URL | Reference link |
Code Blocks
| Syntax | Description |
|---|---|
``` | Code block start/end |
```javascript | Code block with language |
```python | Python code block |
```bash | Shell commands |
code | 4-space indent also works |
Tables
| Syntax | Description |
|---|---|
| col1 | col2 | | Table row |
|---|---| | Header separator |
|:---| | Left align |
|:---:| | Center align |
|---:| | Right align |
Blockquotes and Separators
| Syntax | Description |
|---|---|
> quote text | Blockquote |
>> nested quote | Nested blockquote |
--- | Horizontal rule |
*** | Horizontal rule (alternative) |
___ | Horizontal rule (alternative) |
Extended Syntax (GitHub Flavored Markdown)
| Syntax | Description |
|---|---|
@username | User mention |
#123 | Issue/PR reference |
:emoji: | Emoji (e.g., :smile:) |
==highlight== | Highlighted text |
^footnote^ | Footnote |
[^1] → [^1]: note | Detailed footnote format |
Escaping
| Syntax | Description |
|---|---|
\* | Escape asterisk |
\# | Escape hash |
\[ | Escape bracket |
\\ | Backslash itself |