Skip to content
Footnote

Footnote

Posted Updated
By 廿四1 min Read

Let the Markdown file in your VitePress site support footnotes.

Settings

.vitepress/config.ts
ts
import { defineConfig } from 'vitepress-theme-niansi'

export default defineConfig({
  markdown: {
    plugins: {
      footnote: true
    }
  }
})

Syntax

  • Use [^Anchor text] in Markdown to define a footnote

  • Use [^Anchor text]: ... to describe footnote content

  • If there are multiple paragraphs in footnote, the paragraph show be double indented

Demo

Here’s an example of a footnote[1].

Demo
md
Here’s an example of a footnote[^1].

[^1]: This is the footnote content.

  1. This is the footnote content. ↩︎

Changelog

2026-04-18 23:33
View All Changelog