Footnotes in Markdown
Updated
A footnote puts a source or an aside at the bottom of the page instead of in the middle of a sentence. Markdown writes it as a marker in the text and a matching note anywhere below. RichMarkdown adds them with one click and keeps them when documents move to and from Word.
- Marker in the text:
[^1]. The note, on its own line:[^1]: The source. - In the editor, put the cursor where the marker goes and click the Footnote button in the toolbar.
- Footnotes from Word, Google Docs and .docx files arrive as Markdown footnotes; Download Word turns them back into real Word footnotes.
The syntax
Markdown was created in 2004.[^1] Footnotes came later.[^note]
[^1]: John Gruber, Daring Fireball.
[^note]: Labels can be words as well as numbers.
- The label after
^links the marker to its note. Numbers are the usual choice. GitHub renumbers notes in order; RichMarkdown, its PDF and many other apps show the label as written, so[^note]appears as [note]. - The note can go anywhere in the file; most people keep all notes at the end.
- A note can contain links, bold and
code. - Footnotes are an extension, not part of the original Markdown or CommonMark. GitHub, Obsidian, Hugo and Jekyll display them; an app without footnote support shows the
[^1]text as it is.
Adding footnotes in RichMarkdown
- Put the cursor where the marker belongs.
- Click the Footnote button in the toolbar (on a computer; the phone toolbar is shorter).
- The next free number is inserted, and the cursor jumps to a new note at the end of the document. Type the note.
You never type [^1] yourself; View Markdown shows the syntax the export will contain.
Footnotes from other documents
| Source | What you get |
|---|---|
| Text pasted from Word | Markdown footnotes, numbered |
| Text pasted from Google Docs | Markdown footnotes |
| A .docx file you open | Markdown footnotes |
| An article pasted from Wikipedia | Its citations become footnotes; a source cited twice stays one note |
Footnotes on the way out
| Export | Footnotes become |
|---|---|
| Export .md | [^1] markers and notes |
| Download Word (.docx) | Real Word footnotes at the bottom of the page; links inside notes keep working; a note cited twice gets its own footnote each time, as Word expects |
| Save as PDF / print | Notes stay where they are in the document (at the end, if that is where you keep them), each starting with its label, such as [1] |
Common mistakes
- A space after the caret.
[^ 1]is not a footnote. Write[^1]. - A missing colon in the note. The note line must start with
[^1]:. - Two notes with the same label. Most apps use only one of them. Give each note its own label.
- A marker with no note. It points at nothing: some apps show the raw text, and RichMarkdown shows a bare [1]. Add the note, or delete the marker.
Related guides
FAQ
Does standard Markdown support footnotes?
No. Footnotes are an extension. GitHub, Obsidian, Hugo and Jekyll support the [^1] syntax.
Do footnotes work on GitHub?
Yes. GitHub displays [^1] footnotes in README files, issues and comments.
Will my footnotes survive conversion to Word?
Yes. Download Word (.docx) writes them as real Word footnotes, and links inside them keep working.
Can I convert Word footnotes to Markdown?
Yes. Open the .docx, or paste from Word, and the footnotes become [^1] notes.
Can a footnote label be a word?
Yes. [^source] works like [^1]. GitHub shows numbers in order either way; RichMarkdown and its PDF show the label as written, so numbers read best everywhere.