Skip to content
FeaturesPricingBlogDownload
Home / Markdown syntax / Markdown footnotes

Markdown footnotes

A Markdown footnote has two parts: a reference such as [^1] in the text, and a definition line that starts with the same label, [^1]:, anywhere in the file. The renderer turns the reference into a small raised number and collects the notes at the end of the document. Footnotes are not part of CommonMark, but GitHub, Pandoc, Obsidian and many editors support this syntax.

Markdown was released in 2004.[^1] Most apps now follow CommonMark.[^spec]

[^1]: John Gruber published the original syntax on Daring Fireball.
[^spec]: CommonMark is a stricter specification of the same syntax.

That renders as two numbered references, 1 and 2, with both notes listed at the bottom.

How are footnotes numbered?

The label is only a name. Renderers such as GitHub number footnotes in the order they are first referenced, so [^spec] above shows as 2. Word labels like [^source] make the source easier to edit, because adding a new note in the middle does not mean renumbering the rest.

Rules for labels:

  • No spaces. [^my note] is not read as a footnote. Use [^my-note] instead.
  • The reference and the definition must match exactly, including case.
  • Two references with the same label point to the same note, which then gets two back links.
  • A definition with no reference is left out of the output.

Where should the definition go?

Anywhere in the file. GitHub's documentation says the position of a footnote in the Markdown does not change where it is rendered (GitHub Docs, checked November 2026). Two habits are common: put each definition right after the paragraph that uses it, or collect all of them at the end of the file. The second keeps paragraphs short in the source; the first keeps the note next to the claim while you edit.

How do you write a footnote with several paragraphs?

Indent the following paragraphs by four spaces so they stay inside the note.

Here is a claim that needs context.[^context]

[^context]: The first paragraph of the note.

    A second paragraph, indented by four spaces.
    It can contain **formatting**, `code` and [links](https://commonmark.org).

Inline formatting and links work inside a note. Keep notes short where you can: a note that runs to several paragraphs often belongs in the main text.

What are inline footnotes?

Pandoc's own Markdown and Obsidian also accept a note written in place, ^[The note text.], with no separate definition. GitHub does not support this form and shows the text as typed, so use the two-part syntax for files that move between apps.

Where do Markdown footnotes work?

App or spec Footnotes
CommonMark Not in the spec, shown as typed
GitHub Yes, in .md files, issues and comments; not in wikis
VS Code preview Not in the built-in preview; an extension adds them
Obsidian Yes, including inline ^[...] notes
Pandoc Yes, as real footnotes in Word and PDF
Noteline Shown in the editor; real footnotes in Word and PDF export

GitHub notes that footnotes are not supported in wikis (GitHub Docs, checked November 2026).

Why is my footnote showing as [^1]?

  • The definition is missing, or its label is spelled differently from the reference.
  • The label contains a space.
  • The definition line does not start at the beginning of the line, or the colon after ] is missing.
  • The app follows CommonMark only and has no footnote support.

Footnotes in Noteline

Noteline's editor shows each reference as a small raised label and leaves the definition lines as you typed them. In the desktop app, Word export turns footnotes into real Word footnotes and PDF export places them at the bottom of the page, numbered in order. HTML export and printing list the notes at the end of the document with links back to each reference. The file keeps the plain [^1] syntax, so the same notes render in GitHub, Obsidian and Pandoc.

Common questions

Can a footnote go inside a table cell?

Yes. A reference like [^t] works inside a GFM table cell, and the definition goes below the table like any other.

Can I choose the symbol, such as an asterisk or a dagger?

Not with footnote syntax. The renderer numbers the notes. For a custom mark, write the symbol as text and add the note yourself at the end.

Do footnotes count as links?

In HTML output, yes. Each reference links down to its note, and each note links back up to the reference. In Word and PDF output from Pandoc, they become the document's own footnotes instead.

Noteline

Download Noteline↓See pricing→

Related

  • Markdown links
  • Markdown escape characters
  • Word and PDF export
  • Markdown headings
  • How to write a book in Markdown and build a Word manuscript
  • Markdown to Word and PDF, fully offline
  • Markdown syntax

A Markdown note editor with everything you need

We’re listening

Tell us what you need or what gets in your way. If something isn’t working, write to us any time.

contact@noteline.io→

Product

  • Download
  • Pricing
  • Features
  • Changelog

Learn

  • Markdown syntax
  • Use cases
  • Blog

Compare

  • vs Obsidian
  • vs Notion

Support

  • Help
  • Support
  • Privacy
  • Terms

© 2026 Notelinecontact@noteline.io