-
Hi, |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments 2 replies
-
Please refer advanced configuration section here: https://vitepress.vuejs.org/guide/markdown.html#advanced-configuration After installing and configuring // .vitepress/config.js
import footnote from 'markdown-it-footnote'
import { defineConfig } from 'vitepress'
export default defineConfig({
markdown: {
config: (md) => {
md.use(footnote)
}
}
}) You'll be able to use footnotes:
Output: |
Beta Was this translation helpful? Give feedback.
-
I know little about js. So can you tell me how to merge the code: I have the code already: markdown: {
config: (md) => {
md.use(mathjax3); // 添加公式latex支持
},
}, how to merge the code into? markdown: {
config: (md) => {
md.use(footnote)
}
} |
Beta Was this translation helpful? Give feedback.
-
However, I got it. Just add the line
|
Beta Was this translation helpful? Give feedback.
-
@brc-dd is there any way to specify the location of the footnotes? it always renders at the bottom of the page |
Beta Was this translation helpful? Give feedback.
Please refer advanced configuration section here: https://vitepress.vuejs.org/guide/markdown.html#advanced-configuration
After installing and configuring
markdown-it-footnote
like this:You'll be able to use footnotes: