Footnote
Let the Markdown file in your VitePress site support footnotes.
Settings
ts
import { defineConfig } from 'vitepress-theme-niansi'
export default defineConfig({
markdown: {
plugins: {
footnote: true
}
}
})Syntax
Use
[^Anchor text]in Markdown to define a footnoteUse
[^Anchor text]: ...to describe footnote contentIf 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.This is the footnote content. ↩︎
Changelog
2026-04-18 23:33
View All Changelog