THE GITHTML FIELD GUIDE

Write Markdown footnotes that stay connected to their claims

Place a footnote marker directly after the claim it supports and define the note with a unique, meaningful identifier. Preview the note and its return link in your target renderer. Footnotes are an extension, not a guarantee across all Markdown tools, so confirm support before relying on them for essential explanations.

Decide whether the information belongs below the page

A footnote works well for a citation or a brief qualification that would interrupt the main reading path. It is a poor home for a prerequisite, destructive-action warning, or condition required to understand the next step. Keep those details in the body. Write the sentence so readers can identify exactly which assertion the note supports. If a paragraph contains several unrelated claims, one marker at its end may be ambiguous. Split the claims or add separate references. Give the note a label that reflects its role rather than the temporary number assigned in the rendered document.

Maintain references as paired objects

Use a marker and matching definition, as illustrated below. When moving a paragraph, move or update its definition deliberately; an orphaned marker can leave a visible source token instead of a useful reference. Search the identifier to find every use before replacing a destination. If several statements share a note, confirm that the cited material genuinely supports all of them. Do not create a footnote just to move a bare URL out of view. Add enough context in the note to identify the document and relevant subject, while keeping the surrounding article's own reasoning original.

markdown
The sample result uses the documented test window.[^window]

[^window]: Test-window definition: https://example.com/testing/window

Test citation behavior in the finished artifact

Preview the complete page and follow the marker to the note, then return to the reading position. Check a second note and a repeated reference so you see how numbering and return navigation behave. Export through the actual documentation converter and repeat the test there. A GitHub preview cannot establish whether another processor supports the same footnote extension. If notes disappear in the chosen output, convert critical citations to ordinary links near the claim or choose a supported syntax explicitly. Keep the text understandable when a reader prints it or reads it without interactive navigation. For references that may change, record the source version or access date where appropriate. This gives a later editor a useful starting point when the cited explanation no longer matches the current page.

  1. Keep prerequisites and safety conditions in the main text instead of burying them in notes.
  2. Search each footnote identifier to detect missing definitions and unused notes before publication.
  3. Verify both forward and return navigation in the exact output format readers will receive.

Sources and further reading

AI-assisted writing with source-linked guidance and illustrative examples. Read our editorial approach or report a correction.

All markdown and readme files guides →

Read as MarkdownAll guides

Write Markdown footnotes that stay connected to their claims · gitHtml