GitHub Flavored Markdown (GFM)
Based on the official GitHub Basic Writing and Formatting Syntax reference.
GFM is a superset of standard Markdown with GitHub-specific extensions for issues, PRs, discussions, comments, and .md files.
Syntax At A Glance
| Feature | Syntax |
|---|---|
| Heading | # H1 … ###### H6 |
| Bold | **text** |
| Italic | _text_ |
| Strikethrough | ~~text~~ |
| Link | [text](url) |
| Image |  |
| Code inline | `code` |
| Code block | ``` lang … ``` |
| Blockquote | > text |
| Unordered list | - item |
| Ordered list | 1. item |
| Task list | - [ ] task / - [x] done |
| Alert | > [!NOTE] / [!TIP] / [!WARNING] / [!IMPORTANT] / [!CAUTION] |
| Footnote | text[^1] … [^1]: note |
| Mention | @user / @org/team |
| Issue ref | #42 |
| Emoji | :tada: |
| Escape | \*literal\* |
| Comment | <!-- hidden --> |
Read On Demand
| Read When | File |
|---|---|
| One-line syntax lookup for any GFM feature | Quick Reference |
| Headings, text styling, code blocks, line breaks, escaping | Text & Headings |
| Links (inline, section, relative, custom anchors), images | Links & Images |
| Ordered/unordered lists, nesting, task lists | Lists & Tasks |
| Alerts, footnotes, mentions, emojis | Alerts, Footnotes & Mentions |
Common Pitfalls
- Line breaks in
.mdfiles require two trailing spaces, a\, or<br/>— a plain newline won't break the line. - Nested list indentation must visually align the child marker under the first text character of the parent item.
- Section anchor generation: lowercase, spaces become
-, all other punctuation stripped. Duplicate headings get-1,-2suffixes — update any links if you reorder headings. - Alerts cannot be nested inside other elements and should be used sparingly.
- Footnotes are not supported in GitHub wikis.
- Color swatches (
`#hex`,`rgb()`,`hsl()`) only render in issues, PRs, and discussions — not in plain.mdfile views. - Custom anchors (
<a name="">) are not included in the auto-generated table of contents.
Benchmark
Scenario: .benchmarks/scenarios/markdown-001-wiki-limits.md · Run: 2026-08-31 · Log: .benchmarks/runs/2026-08-31/markdown-001-wiki-limits.json
| Model | Without | With | Delta |
|---|---|---|---|
| claude-opus-4-8 | 100% | 100% | +0% |
| claude-sonnet-4-6 | 100% | 100% | +0% |
| claude-haiku-4-5 | 80% | 100% | +20% |
SOFT PASS (run 2026-08-31). Haiku +20 (80→100); opus/sonnet at ceiling. Gate per
.agents/skills/skill-optimizer/rules/release-gates.md.