Markdown
Headings
# Heading 1—Largest heading (H1)
## Heading 2—Section heading (H2)
### Heading 3—Subsection heading (H3)
#### Heading 4—Sub-subsection (H4)
##### Heading 5—Minor heading (H5)
###### Heading 6—Smallest heading (H6)
Text Formatting
**bold**—Bold text
*italic*—Italic text
***bold italic***—Bold and italic
~~strikethrough~~—Strikethrough text
`inline code`—Inline code
> blockquote—Quoted text
>> nested quote—Nested blockquote
---—Horizontal rule
Lists
- item / * item—Unordered list
1. item—Ordered list
- nested item—Nested list (2 spaces)
- [x] checked—Task list (checked)
- [ ] unchecked—Task list (unchecked)
1. First\n 1. Sub-item—Nested numbered list
Links & Images
[text](url)—Inline link
[text](url "title")—Link with title tooltip
—Image
[ref]: url—Reference-style link
<https://example.com>—Auto-linked URL
[text][ref]—Use reference link
[](url)—Clickable image link
Code Blocks
```language—Fenced code block start
```—Fenced code block end
indented line—Indented code block (4 sp)
```js—JavaScript syntax highlight
```python—Python syntax highlight
```diff—Diff syntax highlight
Tables
| H1 | H2 |—Table header row
|---|---|—Header separator (required)
| cell | cell |—Table data row
|:---|—Left-aligned column
|:---:|—Center-aligned column
|---:|—Right-aligned column
GitHub Flavored Markdown
```mermaid—Mermaid diagrams
```math—Math (LaTeX) block
$E=mc^2$—Inline math
:emoji_name:—GitHub emoji shortcode
@username—Mention a user
#123—Link to issue/PR number
<details><summary>—Collapsible section (HTML)
footnote[^1]—Footnote reference
Escape & Misc
\* \_ \#—Escape special characters
—Non-breaking space (HTML)
<br>—Line break (HTML)
Two trailing spaces—Line break (soft)
<!-- comment -->—HTML comment (hidden)
^superscript^—Superscript (some flavors)
allprintabledoc.com