A:添加脚注的使用

This commit is contained in:
jimmy committed 2025-04-10 11:22:17 +08:00
1 parent dc7c4f2293
commit c30c2fa61c
3 files changed
+97 -61

No files matched your search

+7
View File
@@ -1,4 +1,5 @@
import { defineConfig } from 'vitepress'
import markdownItFootnote from 'markdown-it-footnote';
import shared from './shared'
import zh from './zh'
@@ -8,4 +9,10 @@ export default defineConfig({
locales: {
root: { label: '简体中文', ...zh },
},
markdown: {
config: (md) => {
// 添加脚注
md.use(markdownItFootnote);
}
}
})