Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Markdown Custom FootnoteNew to Visual Studio Code? Get it now.
Markdown Custom Footnote

Markdown Custom Footnote

Mu-Tsun Tsai

|
1 install
| (0) | Free
Footnotes for the built-in Markdown preview, with customizable placement, numbering and labels, and hover popups.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Markdown Custom Footnote

English | 正體中文 | 简体中文 | 日本語 | 한국어 | Deutsch | Français | Español | Português (Brasil) | Русский

Adds [^footnote] syntax to VS Code's built-in Markdown preview, with control over where the footnotes go, how they are numbered and how they look.

With the default settings, the output is the same as Markdown Footnotes, so you can switch over without changing anything.

Footnotes placed and numbered by section

Features

  • Placement: at the end of the document, where the definition is written, right after the paragraph (or list, table, etc.) that refers to it, or at the end of a section of a chosen heading level.
  • Numbering: number through the whole document, or restart at each heading of a chosen level. This is independent of the placement.
  • Custom formats for the references and the labels, such as [1], 1., ①, (iv), * or 四.
  • Hover in the preview: hover over a reference to see the content of the footnote.
  • Hover in the editor: hover over [^label] to see its definition. Ctrl/Cmd + click jumps to the definition.

Hover popup in the preview

All the syntax of markdown-it-footnote is supported:

A reference[^1], an inline footnote^[Written right here.], and a repeated reference[^1].

[^1]: The content of the footnote.

    Indented paragraphs belong to the footnote too.

Settings

Setting Default Description
markdownCustomFootnote.placement document document, definition, block, or h1 to h6
markdownCustomFootnote.numberingReset document document, or h1 to h6
markdownCustomFootnote.referenceFormat [{n}{sub}] Format of the references in the text
markdownCustomFootnote.labelFormat {n}. Format of the labels in the footnote lists
markdownCustomFootnote.separator true Show a horizontal rule before each footnote list
markdownCustomFootnote.hover.preview true Hover popups in the preview
markdownCustomFootnote.hover.editor true Hover popups in the editor

Placement

  • document: all footnotes go to the end of the document.
  • definition: each footnote goes where its definition [^label]: ... is written. Inline footnotes have no definitions, so they go after their block.
  • block: each footnote goes right after the top-level block (paragraph, list, blockquote, table, etc.) where it is first referred to. Footnotes referred to in the same block are listed together.
  • h1 to h6: each footnote goes to the end of the section where it is first referred to, that is, right before the next heading of that level or higher. For example, with h2, the footnotes are listed before each # or ## heading.

A footnote referred to only from within another footnote goes along with that footnote.

Numbering reset

  • document: number through the whole document.
  • h1 to h6: restart from 1 at each heading of that level or higher.

A footnote keeps the number of its first reference. If it is referred to again after the numbering restarts, the later reference shows the same number as the first one.

Formats

The following placeholders are available:

Placeholder Result
{n} The number: 1, 2, 3
{n:roman}, {n:ROMAN} i, ii, iii / I, II, III
{n:alpha}, {n:ALPHA} a, b, c / A, B, C
{n:circled} ①, ②, ③ (up to 50)
{n:cjk} 一, 二, 三
{n:symbol} *, †, ‡, §, ‖, ¶, **, ...
{label} The label in the source, e.g. note for [^note]
{sub} :k for the k-th repeated reference of the same footnote, empty for the first one (references only)

Everything else is shown as is. Some examples:

referenceFormat labelFormat Reference Label
[{n}{sub}] (default) {n}. (default) [1], [1:1] 1.
{n:circled} {n:circled} ① ①
({n:roman}) ({n:roman}) (iv) (iv)
{n:symbol} {n:symbol} † †

Styling

The footnote lists are rendered as <section class="footnotes footnotes-{placement}">, so they can be styled per placement with markdown.styles. For example:

.footnotes-block {
	font-size: 0.9em;
}

Compatibility

Other extensions that add footnotes to the built-in preview would process the footnotes a second time. Please disable them, or their footnote feature, when using this extension. A warning is shown when one of the following is enabled:

  • Markdown Footnotes (bierner.markdown-footnotes)
  • Markdown Footnote (houkanshan.vscode-markdown-footnote and its fork iiwenwen.markdown-footnote)
  • p7d-markdown-it-footnote-here (peaceroad.p7d-markdown-it-footnote-here)
  • Markdown Extended (jebbs.markdown-extended), unless footnote is in its markdownExtended.disabledPlugins

License

MIT

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft