A:添加脚注的使用
This commit is contained in:
1 parent
dc7c4f2293
commit
c30c2fa61c
3 files changed
+97
-61
No files matched your search
@@ -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);
|
||||
}
|
||||
}
|
||||
})
|
||||
Reference in new issue
Block a user