Markdown Reference
Markdown and GitHub Flavored Markdown. When to use Markdown vs AsciiDoc, GFM extensions, and syntax reference.
When Markdown (Not AsciiDoc)
Markdown remains the right choice for:
-
README.mdfiles — GitHub/GitLab renders natively -
CLAUDE.md,MEMORY.md— Claude Code expects Markdown -
CHANGELOG.md— conventional changelog tooling assumes Markdown -
GitHub Issues and Pull Request descriptions
-
Quick notes that never enter Antora
For anything published through Antora, use AsciiDoc.
Headings and Text
# H1 -- document title
## H2 -- major section
### H3 -- subsection
#### H4 -- detail
**bold** *italic* `monospace` ***bold italic***
~~strikethrough~~ [link text](url) 
Lists
- Item one
- Nested item
- Third level
1. First step
1. Sub-step
2. Second step
- [x] Completed task
- [ ] Pending task
- [ ] Another pending task
GitHub renders these as interactive checkboxes in Issues and PRs.
Code Blocks
```bash
awk -F: '{print $1, $3}' /etc/passwd
```
Use `grep -r` to search recursively.
Tables
| Left | Center | Right |
|:-------|:-------:|------:|
| data | data | data |
| more | more | more |
Colons control alignment: :--- left, :---: center, ---: right.
Links and Images
[inline link](https://example.com)
[reference link][ref-id]
[relative link](./docs/page.md)
[ref-id]: https://example.com "Title"


Blockquotes and Admonitions
> This is a blockquote.
> It can span multiple lines.
>
> > Nested blockquote.
> [!NOTE]
> Informational aside.
> [!WARNING]
> Potential problem ahead.
> [!TIP]
> Helpful suggestion.
> [!IMPORTANT]
> Key requirement.
> [!CAUTION]
> Data loss risk.
Footnotes
This needs clarification[^1].
[^1]: Here is the footnote content.
AsciiDoc vs Markdown Quick Comparison
| Feature | Markdown | AsciiDoc |
|---|---|---|
Bold |
|
|
Code block |
```bash |
|
Link |
|
|
Image |
|
|
Table cell content |
Plain text only |
AsciiDoc markup (lists, code) |
Includes |
None |
|
Cross-references |
Relative links |
|
Admonitions |
GFM |
Native |
Conditionals |
None |
|
Attributes/variables |
None |
|
The comparison is not "which is better" — it is "which context demands which tool." GitHub context: Markdown. Antora publishing: AsciiDoc.