Let the Markdown file in your VuePress site support footnotes.
Configuration
module.exports = {
plugins: [
[
"markdown-enhance",
{
// Enable Footnote
footnote: true,
},
],
],
};
Syntax
Use
[^Anchor text]
in Markdown to define a footnoteUse
[^Anchor text]: ...
to describe footnote contentIf there are muti paragraph in footnote, the paragraph show be double indented
Case
Footnote 1 link[1].
Footnote 2 link[2].
Inline footnote[3] definition.
Duplicated footnote reference[2:1].
Footnote 1 link[^first].
Footnote 2 link[^second].
Inline footnote^[Text of inline footnote] definition.
Duplicated footnote reference[^second].
[^first]: Footnote **can have markup**
and multiple paragraphs.
[^second]: Footnote text.