GitHub Markdown Guide: GFM Specifics That Ship in READMEs and Issues (2026)
Plenty of Markdown guides cover the common syntax. This one focuses on the parts that only work on GitHub: the GFM extensions layered on top of CommonMark, the GitHub-specific features that the GFM spec does not even cover (alerts, Mermaid, math, autolinked references), and the repository conventions that turn Markdown into a project's interface — the .github directory, issue templates, Jekyll front matter, and README structure. If you write documentation that ships inside a GitHub repo, this is the dialect that matters.
What GFM Adds Beyond CommonMark
Markdown is not one format. It is a stack. At the bottom sits CommonMark, the baseline specification that nails down headings, paragraphs, lists, code blocks, links, images, and blockquotes — the parts that render the same way in every conforming parser. Above CommonMark sits the GitHub Flavored Markdown spec, a strict superset that adds tables, task list checkboxes, strikethrough, autolinks, and a handful of disambiguation rules. Above the GFM spec sits GitHub's own renderer, which adds features the GFM spec does not even attempt to describe: alerts (the [!NOTE] syntax), Mermaid diagrams, math rendering, autolinked issue and commit references, and the .github directory conventions.
That stack matters because it tells you what travels. CommonMark travels everywhere. GFM extensions travel to most modern Markdown renderers — GitLab, Bitbucket, Discord, many static site generators, and the NoCostTools markdown editor all support at least the GFM subset. The GitHub-only features do not travel at all. A README with [!NOTE] blocks looks great on GitHub and falls back to a plain blockquote everywhere else; a Mermaid diagram in a README renders inline on GitHub and shows up as a fenced code block on a Jekyll site without the right plugin. Knowing which layer a feature lives in is the difference between documentation that ships everywhere and documentation that ships only on the repo page.
The rest of this guide walks that stack from the inside out: GFM extensions first, then the GitHub-only features, then the repository conventions (templates, workflows, README structure, Jekyll front matter) that turn Markdown from a writing format into a project interface. The general writing rules that travel across every dialect — ATX headings, heading hierarchy, line breaks, emphasis, list discipline — live in our markdown best practices guide; the platform-by-platform support matrix for which renderer accepts which extension lives in the markdown platforms guide. This article is the GitHub layer.
The GFM Extension Matrix
The table below is the short reference. Each row is a feature, the syntax that triggers it, whether CommonMark recognizes it (almost never, by definition of an extension), whether the GFM spec codifies it, and whether GitHub's own renderer has to do extra work for it to appear.
| Feature | Trigger syntax | CommonMark | GFM spec | GitHub renderer |
|---|---|---|---|---|
| Tables | | col | col | with separator row | No | Yes | Yes |
| Task lists | - [ ] and - [x] in a list | No | Yes | Yes (interactive in issues) |
| Strikethrough | ~~text~~ | No | Yes | Yes |
| Autolinks (URLs) | Bare URL or <https://...> | Only angle-bracket form | Yes (bare URL too) | Yes |
| Autolinks (mentions) | @user or @org/team | No | No | Yes (GitHub-only) |
| Autolinks (issues/PRs) | #42, GH-42, owner/repo#42 | No | No | Yes (GitHub-only) |
| Autolinks (SHAs) | 40-char hash or 7+ char prefix | No | No | Yes (GitHub-only) |
| Fenced code language hint | Three backticks + language id | Info string preserved | Yes | Yes (Linguist highlighter) |
| Diff highlighting | ```diff fence | No | No | Yes (GitHub-only) |
| Mermaid diagrams | ```mermaid fence | No | No | Yes (GitHub-only) |
| Math (inline) | $...$ | No | No | Yes (MathJax, GitHub-only) |
| Math (block) | $$...$$ on its own lines | No | No | Yes (MathJax, GitHub-only) |
| Alerts | > [!NOTE] and four siblings | No | No | Yes (GitHub-only) |
| Collapsible sections | Raw <details>/<summary> | HTML block | HTML block | Yes (rendered) |
Read the matrix this way: anything marked "GitHub-only" appears literally in other renderers. If you depend on a GitHub-only feature in a README that has to render on a docs site too, plan a fallback — either a supported plugin (Mermaid for Jekyll, MathJax for any site) or a plain-Markdown version of the same content.
Tables: Alignment, Width, and What Breaks
GFM tables are pipe-delimited. The first row is the header, the second row is a separator made of hyphens, and every row after is data. The number of hyphens per column does not matter for rendering — it is a source-readability convention — but at least one hyphen and at least one pipe per cell are required.
| Feature | Status | Priority |
|------------|---------|----------|
| Auth | Done | High |
| Dashboard | WIP | Medium |
| Reports | Planned | Low |
Column alignment is controlled by colons in the separator row. :--- is left, :---: is center, ---: is right. GitHub applies the alignment to every cell in the column, including the header. The default, with no colons, is left.
| Left | Center | Right |
|:-----|:------:|------:|
| a | b | c |
A few GitHub-specific rendering rules worth knowing. First, GitHub trims leading and trailing whitespace in every cell, so padding the source for readability never affects the output. Second, inline Markdown works inside cells — bold, italic, code spans, links, images, even task list checkboxes — but block-level constructs (headings, code blocks, lists) do not. If you need a list inside a table cell, use HTML <ul> inside the cell or restructure. Third, GitHub does not support cell merging (no colspan/rowspan); if you need it, switch to raw HTML for the whole table. Fourth, GitHub autolinks bare URLs and references inside cells, which is occasionally surprising — a column that says "see #42" turns into a live link to issue 42.
The width rule is the most common surprise: GitHub renders tables with horizontal scroll on narrow viewports rather than wrapping text. A 12-column table on mobile is a horizontal-scroll experience, not a wrapped one. For comparison data that needs to wrap, prefer a definition list or a sequence of <dl>-style blocks instead. The general writing rules for tables — keep them narrow, keep the source columns aligned, prefer real tabular data over forced layouts — are covered in the markdown best practices guide; the GitHub-specific behavior above is what differs.
Task Lists: - [ ] and - [x] That Render as Checkboxes
Task list syntax turns a bullet item into a checkbox. An unchecked item uses - [ ]; a checked item uses - [x]. The space after the hyphen and inside the brackets is required; -[] and -[x] do not parse.
- [x] Set up project repository
- [x] Configure CI/CD pipeline
- [ ] Write unit tests
- [ ] Deploy to staging
- [ ] Final code review
Two GitHub-specific behaviors make task lists more useful than they look. First, in an issue or pull request description, GitHub computes a progress bar from the ratio of checked to total items and shows it at the top of the body. That progress bar is live: check or uncheck a box in the rendered view and the source text is rewritten with the new state. Second, task lists work as nested items, so a parent line tracks the completion of its children. The standard pattern is a parent bullet with the summary text and a child list of the actual checkboxes:
- [ ] Milestone 1
- [x] Sub-task A
- [ ] Sub-task B
- [ ] Milestone 2
- [ ] Sub-task C
When every child of a parent is checked, GitHub does not automatically check the parent — you still have to do that yourself or use a script. Indentation matters: the child list must be indented under the parent with at least two spaces (most style guides use four) so the parser recognizes the nesting. Tabs work, but mixing tabs and spaces in the same list breaks the indentation, so pick one and stick to it.
Task lists render in README files too, but they are not interactive there — a reader of a README cannot click a checkbox and have it persist. They are interactive only in issues, pull requests, comments, and discussion bodies. The documentation best practices guide covers the writing-side discipline; the GitHub-specific behavior is the live editing and progress tracking.
Strikethrough: ~~text~~ for Corrections and Deprecations
GFM strikethrough wraps text in two tildes: ~~text~~ renders as text. The double-tilde rule is in the GFM spec; single tildes do not work. The parser is forgiving about a single trailing or leading space, but a tilde in the middle of a word behaves the same as at a word boundary — strikethrough is not bound to word edges the way underscore emphasis is.
This feature is ~~deprecated~~ in maintenance mode.
The old API ~~v1~~ is replaced by v2.
Two practical uses in GitHub documentation. First, marking deprecated options in a README or migration guide: the strikethrough signals the old name is gone without erasing the history. Second, recording edits in long-lived documents like architecture decision records, where the strikethrough preserves the original reasoning and the new text sits next to it. Avoid strikethrough for sarcasm or humor in technical docs — readers scanning for the current state often miss the struck text and act on it, which is the opposite of what strikethrough signals to them.
The escape hatch is a leading backslash: \~~not struck~~ renders literally. Inside code spans and code blocks, tildes are never interpreted as strikethrough, so a code sample that uses ~~ (bash home directory expansion, R's formula operator) needs no escaping.
Autolinks: URLs, Mentions, Issues, SHAs, and Commit Ranges
GitHub autolinks are the most GitHub-specific feature in the entire stack. They are not in the GFM spec at all — they are extensions to the spec that GitHub's own renderer applies. There are five categories, each with its own rules.
URLs
The GFM spec extends CommonMark by treating a bare URL (no angle brackets) as a link. https://nocosttools.com on its own line becomes a clickable link. The angle-bracket form (<https://nocosttools.com>) is CommonMark-standard and also works. Email addresses in angle brackets (<user@example.com>) autolink as mailto: links.
User and team mentions
A @ followed by a GitHub username (@octocat) becomes a link to that user's profile and triggers a notification if the user has notifications enabled. Team mentions use the form @org/team. Mentions inside code blocks, code spans, and quoted text do not trigger notifications, which is the right behavior for examples that mention users by handle.
Issue, pull request, and discussion references
A pound sign followed by digits — #42 — autolinks to issue or pull request 42 in the current repository. Cross-repo references use the form octocat/Hello-World#42. The keyword form GH-42 is also recognized in some contexts. Closing keywords — fixes #42, closes #42, resolves #42 — close the referenced issue when the pull request merges; uppercase variants (Fixes, Closes) and past-tense (fixed) also work.
Commit SHAs
A 40-character hexadecimal SHA, or any unique prefix of at least 7 characters, autolinks to that commit. a1b2c3d and a1b2c3d4e5f6789012345678901234567890abcd both link to the same commit. Cross-repo form: octocat/Hello-World@a1b2c3d.
Commit ranges and compare views
Two SHAs joined by ... — a1b2c3d...e5f6789 — autolink to the compare view between those commits. The same syntax with ^ for parent (a1b2c3d^) and @{date} for time-based refs also works.
Fixed in a1b2c3d, see #42 for the original report.
Closes octocat/Hello-World#42; full diff at a1b2c3d...e5f6789.
/cc @octocat @reviewer-team
The escape hatch is a backslash before the sigil: \#42, \@octocat, and a SHA inside a code span are all left alone. Autolinks do not render on platforms other than GitHub — the literal text is what shows up — so a README that says "see #42 for context" is unreadable on a docs site without the issue context. Prefer explicit links ([issue #42](https://github.com/owner/repo/issues/42)) for documentation that has to travel. The regex that GitHub uses to recognize these tokens is documented from the testing side in the regex testing guide; the day-to-day tester workflow for matching patterns like these lives in the regex tester guide, the advanced lookarounds and backreferences in the regex tester ultimate guide, and the CI-integrated developer workflow in the regex tester developer guide.
Fenced Code Blocks: Language Hints, Diff, and Syntax Highlighting
CommonMark defines fenced code blocks with three backticks (or three tildes) and an optional "info string" — the text after the opening fence. The GFM spec says the info string is the language identifier. GitHub uses that identifier to pick a syntax highlighter from Linguist, its language-detection library, which currently recognizes over 200 languages.
```javascript
function greet(name) {
return `Hello, ${name}!`;
}
```
```python
def greet(name):
return f"Hello, {name}!"
```
Always include a language identifier. A fenced block without one is plain monospace text with no highlighting, which is fine for raw output but loses the value of a fence for source code. Common identifiers: javascript, typescript, python, bash, sh, json, yaml, html, css, go, rust, java, sql, diff, markdown, text (explicit no highlighting).
Diff highlighting
The diff language identifier is GitHub-specific. Lines starting with + render green, lines starting with - render red, and unchanged lines (or lines starting with a space) render neutral. This is the standard way to show change examples in pull requests, migration guides, and code review documentation.
```diff
- const oldFunction = () => {};
+ const newFunction = () => {};
// unchanged line
```
Language aliases and edge cases
Linguist accepts many aliases: js for JavaScript, py for Python, ts for TypeScript, sh for shell. Some aliases are surprising — gfm highlights as Markdown, yml is an accepted alias for yaml, and c++ works as a language identifier (the + does not need escaping inside the info string). When in doubt, search Linguist's languages.yml for the canonical name. The info string can also carry attributes after the language — GitHub uses a subset of these for line highlighting and line numbers, but the syntax is unstable and best avoided in README content that has to last.
For code samples that are themselves Markdown (a README that documents a README), wrap the example in four backticks (````````) instead of three, so any inner three-backtick fence survives as literal text. The convention is "one more backtick than the longest inner fence." When the shipped code itself is CSS or JavaScript, the minification workflow in our code minification best practices guide is the downstream step that turns those code blocks into production assets without breaking the syntax highlighting.
Mermaid Diagrams: Flowcharts, Sequence, Gantt, and More
GitHub renders Mermaid diagrams inline in any Markdown surface. Use ```mermaid as the fence and write the diagram source inside. GitHub runs Mermaid client-side and renders to SVG, which is selectable text and zoomable.
```mermaid
graph TD
A[Start] --> B{Decision}
B -->|Yes| C[Action 1]
B -->|No| D[Action 2]
C --> E[End]
D --> E
```
Mermaid supports a substantial subset of diagram types: graph (flowcharts, with directions TD/LR/RL/BT), sequenceDiagram, classDiagram, stateDiagram-v2, erDiagram (entity-relationship), gantt, pie, journey, gitGraph, and mindmap. For documentation that has to explain a system flow, a sequence diagram is almost always clearer than prose; for a roadmap, Gantt; for a state machine, stateDiagram-v2.
Three caveats. First, Mermaid on GitHub is a client-side render, which means the diagram does not appear in PDF exports or in copy-paste of the rendered page — only the source survives. Second, Mermaid is GitHub-specific; the ```mermaid fence shows up as a plain code block on Jekyll, Hugo, and most other static site generators unless you add a Mermaid client library or plugin. Third, Mermaid has a security model that disables some HTML and SVG features by default; if a diagram uses click handlers or external links, you may need to enable them in the diagram's init directive. The documentation best practices guide covers when to reach for a diagram versus prose; the Mermaid syntax is the GitHub-specific delivery channel.
Math Support: $...$ Inline and $$...$$ Block
GitHub has rendered LaTeX-style math since 2022. Inline math uses single dollar signs: E = mc^2 renders inline. Display math uses doubled dollar signs on their own lines: $$E = mc^2$$ renders centered on its own line. GitHub uses MathJax server-side and renders to MathML with an SVG fallback for browsers that do not support MathML.
Inline math: the energy-mass relation is $E = mc^2$.
Block math:
$$
\frac{\partial \rho}{\partial t} + \nabla \cdot (\rho \mathbf{v}) = 0
$$
The supported subset is the common LaTeX math-mode macros: fractions, sums, integrals, matrices, Greek letters, accents, and the standard AMS environments. Full TeX is not available — no \section, no \begin{document}, no \usepackage. The macros that work are the ones that produce math notation, not document structure.
The biggest gotcha is the dollar sign itself. Anywhere GitHub sees a single dollar sign with math-looking content inside, it tries to render it as inline math — which means a sentence about "$5 and $10" can render as broken math. The escape hatch is a backslash before the dollar sign (\$5) or wrapping the dollar amount in a code span (`$5`). Block math needs blank lines around it so the parser does not get confused about where the math starts; the convention is a blank line before $$, the math, a blank line after $$.
Math does not travel. The $...$ syntax is GitHub-only; on a Jekyll site it renders as literal text with dollar signs unless you add MathJax or KaTeX. The static site generators guide covers the SSG-side plugins; the GitHub behavior is the rendering contract you have to match elsewhere if you want parity.
Admonitions: > [!NOTE] and the Five Alert Types
GitHub alerts are blockquotes with a special first line. The line is a marker in square brackets, one of five: [!NOTE], [!TIP], [!IMPORTANT], [!WARNING], or [!CAUTION]. Every subsequent line of the blockquote is the alert body. GitHub renders each type with a distinct color, icon, and label.
> [!NOTE]
> Background information or helpful context.
> [!TIP]
> Best practices and optimization suggestions.
> [!IMPORTANT]
> Critical steps or requirements.
> [!WARNING]
> Potential problems or breaking changes.
> [!CAUTION]
> Actions that could cause data loss.
The marker line must be the very first line of the blockquote. A blockquote that starts with normal text and then has a marker partway through does not become an alert — it stays a plain blockquote with the marker as visible text. The marker is also case-sensitive; [!note] does not work. Custom markers like [!INFO] or [!BUG] fall back to plain blockquotes; only the five canonical markers render as alerts.
Alerts are the GitHub-native way to call out important information. Before alerts existed, READMEs used raw HTML <blockquote> with custom classes, all-caps headers, or emoji prefixes (⚠️, 🔥). The alert syntax is the standardized replacement: it renders consistently, it is accessible to screen readers, and it survives copy-paste into issues and pull requests. Use them sparingly — a README with seven alerts has no alerts — and reserve [!CAUTION] for the rare cases that genuinely risk data loss. The documentation best practices guide covers the writing discipline; the syntax is the GitHub-specific delivery.
Collapsible Sections with <details> and <summary>
Collapsible sections use the HTML <details> element with a <summary> child. GitHub renders the summary as a clickable label and the rest of the element as expandable content. The Markdown inside the body parses normally — fenced code, lists, tables, alerts, even nested <details> all work inside the expanded section.
<details>
<summary>Click to expand the full configuration</summary>
```json
{
"debug": true,
"port": 3000,
"database": {
"host": "localhost",
"name": "myapp"
}
}
```
</details>
The blank line after <summary> and the blank line before </details> are required — without them, the parser treats the content as part of the HTML block and does not parse the Markdown inside. This is the most common bug in collapsible sections. The open attribute on <details> (<details open>) expands the section by default, which is useful for content that should be visible on first load and collapse on demand.
Use collapsible sections for long content that would otherwise dominate the page: full configuration dumps, verbose logs, multi-step setup examples, large code samples that are reference rather than reading material. Avoid them for content that has to be read in order — a step-by-step guide hidden in a <details> is a step-by-step guide the reader will skip. The escape hatch is a tool, not a default; the discipline of when to use it is the same discipline covered in the markdown best practices guide for raw HTML in general.
The .github/ Directory: Templates, Workflows, CODEOWNERS
The .github directory is the part of Markdown on GitHub that is not really Markdown — it is the repository-level convention that turns Markdown files into project interface. Files in .github/ control how GitHub itself renders the repo: the issue form a user sees when they click "New issue," the pull request template that pre-fills the body, the reviewers that GitHub auto-requests on a PR, the workflows that run on every push, and the sponsorship button on the repo page.
Issue and pull request templates
Issue templates live in .github/ISSUE_TEMPLATE/. A template is a Markdown file with optional YAML front matter that controls the form. The front matter can set name, about, title, labels, assignees, and type (for the new issue chooser). A template with front matter becomes a form-style issue; a template without front matter is a plain Markdown body that GitHub appends to the issue.
---
name: Bug report
about: Report something that is broken
title: "[BUG] "
labels: bug, triage
assignees: octocat
---
## What happened?
<!-- A clear description of the problem. -->
## Steps to reproduce
1.
2.
3.
## Expected behavior
<!-- What you expected to happen. -->
Form-style templates (the .yml variant, not .md) are the modern replacement: they use a structured schema with id, type, attributes, and validations per field, and they render as a real form with inputs, dropdowns, and checkboxes. The Markdown body form is still supported for backwards compatibility; new repos should prefer the YAML form.
Pull request template
A pull request template lives at .github/PULL_REQUEST_TEMPLATE.md (or pull_request_template.md at the repo root, or in a .github/PULL_REQUEST_TEMPLATE/ directory for multiple templates). GitHub pre-fills the PR body with the contents of the template. The same syntax applies — Markdown for the body, no front matter, no form schema.
CODEOWNERS
The CODEOWNERS file (at .github/CODEOWNERS or repo root) maps file paths to GitHub users and teams who are auto-requested as reviewers when a PR touches those paths. It is plain text, not Markdown, but it lives in the same directory and is part of the same workflow. The format is one rule per line: a path pattern, whitespace, then one or more @user or @org/team owners.
# Default owner for everything
* @octocat
# Source code
/src/ @octocat/dev-team
/docs/ @octocat/docs-team
# Specific file
/package.json @octocat/maintainers
Workflows and other files
.github/workflows/ holds GitHub Actions workflow files in YAML. Each workflow has a name, on (triggers), and one or more jobs with steps. The front matter is the YAML itself; there is no Markdown wrapper, though workflow run-name fields accept Markdown for the action log output. Workflow runs get a globally unique run identifier; the versioning and uniqueness rules behind those identifiers are covered in our UUID generator developer guide. Other common files: FUNDING.yml (the Sponsor button configuration), SECURITY.md (vulnerability disclosure policy, surfaced in the Security tab), dependabot.yml (dependency automation), and a top-level .github/README.md that profiles the organization across all its repos in a single profile page.
README.md Best Practices: Structure, Badges, Anchors
A README is the first thing a visitor sees on the repo page. GitHub renders it inline, so the README has to work both as plain text in a code editor and as rendered HTML on the web. The structure that travels well is a fixed top, a flexible middle, and a stable bottom.
The fixed top
Open with the project name as the H1, a one-line description, and a row of badges. Badges are inline images, usually from shields.io, that surface CI status, version, license, and download count. They render as plain images in the source and as small status chips on the rendered page. A typical badge row:
# Project Name
One sentence that says what the project does and who it is for.



The flexible middle
The middle of the README is the actual content. The conventional sections, in order, are: Installation, Usage, Configuration, Contributing, License. Not every project needs all five; a library README usually has Installation, Usage, Configuration, License; an application README usually has Installation, Usage, Contributing, License. The rule is to put the thing the reader most needs first — for a library, that is how to install and call it; for an app, that is how to run it.
The stable bottom
The bottom of the README is the citation block: a License section with the SPDX identifier, an Acknowledgements section if relevant, and a Links section pointing to docs, the issue tracker, and the changelog. The bottom stays stable across versions; the top and middle change as the project grows.
Anchor IDs
GitHub generates anchor IDs from headings by lowercasing, replacing spaces with hyphens, and stripping most punctuation. ## Getting Started gets the ID getting-started; ## API: v2 gets api-v2. To link to a section from elsewhere in the README or from outside, use the #id form: [see Getting Started](#getting-started). GitHub also generates a "table of contents" automatically from the menu icon on any long Markdown file, but a hand-written TOC in the README is still useful for readers who arrive via raw GitHub URLs. The general writing rules for README structure are in the markdown best practices guide; the GitHub-specific rendering (badges, auto-anchors) is what differs.
GitHub Pages Jekyll Front Matter Compatibility
GitHub Pages runs Jekyll by default. Jekyll reads Markdown files with a YAML front matter block at the top — three hyphens, the YAML, three hyphens — and uses the front matter as page metadata. The front matter is invisible in the rendered HTML but visible in the source, so a Markdown file that works as a README and as a Jekyll page is one whose front matter is optional.
---
layout: default
title: API Reference
permalink: /api/
nav_order: 3
---
# API Reference
The endpoints below are stable as of v2.
The most useful front matter keys for a Pages site: layout (which template to wrap the content in), title (the page title, used in the head and the nav), permalink (the URL the page is served at), nav_order (position in the nav, for themes that support it), description (meta description for SEO), last_modified_at (used by some themes for a "last updated" line), and toc (whether to render a table of contents, in themes that support it).
Three compatibility caveats. First, GitHub Pages uses the kramdown engine, which is a stricter superset of GFM but not identical. Most GFM tables, task lists, and strikethrough work; some edge cases (autolinked references, alerts) do not, because they are GitHub-renderer features, not GFM spec features. Second, kramdown treats single newlines inside paragraphs as hard breaks — the same behavior as GFM — so prose that wraps on a single newline renders the same on both. Third, the _config.yml file at the root of the Pages repo controls Jekyll's global behavior; the kramdown section there sets the parser options, including input (use GFM), auto_ids (true by default), and toc_levels (which heading levels get anchors).
The escape hatch for content that has to render the same on GitHub and on Pages is to avoid the GitHub-only features in the body and use the front matter to control the page structure. The static site generators guide covers the SSG landscape (Jekyll, Hugo, Eleventy) and which dialect each one parses; the markdown platforms guide has the per-platform support matrix. For the specific case of moving content from a GitHub README to a Pages site, the practical steps are in the HTML to markdown conversion guide, and the live editor to verify rendering is the markdown editor.
7 Common GFM Mistakes (and the Fix for Each)
- Depending on a GitHub-only feature in a README that has to render elsewhere. Alerts, Mermaid, math, and autolinked references all show up as literal text on Jekyll, Hugo, and most static site generators. Fix: pick features at the layer your renderer supports, or add the plugin (Mermaid for Jekyll, MathJax for any site) before you depend on them.
- Forgetting the blank line after
<summary>and before</details>. Without the blank lines, the parser treats the content as part of the HTML block and does not parse the Markdown inside. Fix: always wrap the inner content of a collapsible section in blank lines, even when it is a single line. - Single dollar signs used as currency in prose. A sentence like "the cost is $5 and $10" can render as broken math. Fix: escape with a backslash (
\$5) or wrap the amount in a code span (`$5`); reserve the bare$...$form for actual math. - Task list items with no space inside the brackets.
-[]does not parse as a checkbox;- [ ]does. The space after the hyphen and inside both brackets is required by the GFM spec. Fix: lint with markdownlint rule MD022 and the task list extension, or paste from a working example. - Tables with too many columns for mobile. GitHub renders wide tables with horizontal scroll on small screens, not wrapping. Fix: prefer a definition list or a sequence of
<dl>-style blocks for data that needs to wrap; reserve tables for genuinely tabular data that fits a phone screen. - Alert markers anywhere but the first line of a blockquote. A blockquote that starts with prose and then has
[!NOTE]partway through stays a plain blockquote with visible[!NOTE]text. Fix: the marker line is always the first line; if you need an intro line, put it before the alert, not inside. - Assuming autolinked references work outside GitHub.
#42in a README is a live link on GitHub and the literal text "#42" everywhere else. Fix: for documentation that has to travel, use explicit links ([issue #42](https://github.com/owner/repo/issues/42)) so the link survives the move.
Every one of these is a portability problem first and a syntax problem second. The rule of thumb is to know which layer of the stack a feature lives in (CommonMark, GFM spec, or GitHub-only) and to test in two renderers — the GitHub web view and one other — before you ship a README that depends on any feature above the CommonMark baseline.
Frequently Asked Questions
Related Articles
Regex Testing Guide
The Cluster 16 pillar: the unified theory of regex testing, including pattern construction, lookahead and lookbehind, and the test harness that ships with every regex workflow.
Regex Tester Guide
Regex mechanics and use cases: anchors, character classes, quantifiers, and the tester workflow that catches bugs before they reach production.
Regex Tester Ultimate Guide
Advanced regex patterns: lookarounds, backreferences, named captures, and the techniques every senior developer should recognize on sight.
Regex Tester Developer Guide
Developer workflows for regex: testing patterns in CI, debugging failures, and integrating regex checks into the build pipeline.
Markdown Best Practices
The writing rules that travel across CommonMark, GFM, and every static site generator: ATX headings, hierarchy, line breaks, emphasis, and list discipline.
Markdown Platforms
Which renderer supports which extension: the dialect matrix for GitHub, GitLab, Bitbucket, CommonMark, MDX, and every major static site generator.
HTML to Markdown Conversion Guide
The inverse direction: when and how to migrate HTML content to Markdown, and what does not survive the trip from one format to the other.
Code Minification Best Practices: CSS & JS Performance Gains
Minification for the assets Markdown embeds: CSS and JS performance gains without breaking the rendered output.
Static Site Generators
Jekyll, Hugo, Eleventy compared: which SSG parses which Markdown dialect, and what to choose for a docs site that ships on GitHub Pages.
Developer Tools Guide
The developer tool suite overview: linters, formatters, converters, and the lint config that ties them together across a Markdown-driven codebase.
UUID Generator Developer Guide
UUID mechanics and developer use cases: versioning, uniqueness guarantees, and when a UUID belongs in your issue templates or workflow IDs.
Data Conversion Tools Professional Workflows
Conversion workflows for pros: JSON, CSV, YAML, Markdown, and the format-to-format pipeline that keeps data honest as it moves between systems.
Conclusion: GFM Is a Stack, Not a Dialect
Writing Markdown for GitHub is a stack-aware exercise. The CommonMark baseline travels everywhere. The GFM extensions — tables, task lists, strikethrough, autolinked URLs, fenced code language hints — travel to most modern renderers. The GitHub-only features — alerts, Mermaid, math, autolinked references, the .github directory conventions — do not travel at all. Knowing which layer a feature lives in is the difference between a README that renders the same on GitHub and on your docs site, and a README that looks great on the repo page and falls apart everywhere else.
The rules that travel are in the markdown best practices guide; the per-platform support matrix is in the markdown platforms guide; the conversion paths in and out of HTML are in the HTML to markdown conversion guide; the SSG landscape that wraps Markdown into a site is in the static site generators guide; the wider developer-tool ecosystem is in the developer tools guide. When you are ready to move from reading to writing, the markdown editor renders your GFM source live, the HTML to Markdown converter handles the inverse direction, the writing discipline is in our documentation best practices guide, and the full catalog of developer guides is on the NoCostTools blog.