| icon | material/format-align-bottom |
|---|
Footnotes are a great way to add supplemental or additional information to a specific word, phrase or sentence without interrupting the flow of a document. Material for MkDocs provides the ability to define, reference and render footnotes.
This configuration adds the ability to define inline footnotes, which are then
rendered below all Markdown content of a document. Add the following lines to
mkdocs.yml:
markdown_extensions:
- footnotesSee additional configuration options:
Footnotes can be rendered as inline tooltips, so the user can read the footnote
without leaving the context of the document. Footnote tooltips can be enabled
in mkdocs.yml with:
theme:
features:
- content.footnote.tooltipsFootnote tooltips are enabled on our documentation, so to try it out, you can just hover or focus any footnote on this page or any other page of our documentation.
A footnote reference must be enclosed in square brackets and must start with a
caret ^, directly followed by an arbitrary identifier, which is similar to
the standard Markdown link syntax.
Lorem ipsum[^1] dolor sit amet, consectetur adipiscing elit.[^2]
The footnote content must be declared with the same identifier as the reference. It can be inserted at an arbitrary position in the document and is always rendered at the bottom of the page. Furthermore, a backlink to the footnote reference is automatically added.
Short footnotes can be written on the same line:
[^1]: Lorem ipsum dolor sit amet, consectetur adipiscing elit.
:octicons-arrow-down-24: Jump to footnote
Paragraphs can be written on the next line and must be indented by four spaces:
[^2]:
Lorem ipsum dolor sit amet, consectetur adipiscing elit. Nulla et euismod
nulla. Curabitur feugiat, tortor non consequat finibus, justo purus auctor
massa, nec semper lorem quam in massa.
:octicons-arrow-down-24: Jump to footnote