diff --git a/.vitepress/config.mts b/.vitepress/config.mts index 7ebffdc..41abc89 100644 --- a/.vitepress/config.mts +++ b/.vitepress/config.mts @@ -1,4 +1,5 @@ import { defineConfig } from 'vitepress' +import mdFootnote from "markdown-it-footnote" // const { BASE: base = '/' } = process.env; @@ -13,7 +14,10 @@ export default defineConfig({ appearance: true, markdown: { - math: true + math: true, + config: (md) => { + md.use(mdFootnote) + }, }, // base: base, diff --git a/package-lock.json b/package-lock.json index c868d33..046b816 100644 --- a/package-lock.json +++ b/package-lock.json @@ -6,6 +6,7 @@ "": { "devDependencies": { "lite-youtube-embed": "^0.3.3", + "markdown-it-footnote": "^4.0.0", "markdown-it-mathjax3": "^4.3.2", "vitepress": "^1.3.2" } @@ -1791,6 +1792,13 @@ "dev": true, "license": "MIT" }, + "node_modules/markdown-it-footnote": { + "version": "4.0.0", + "resolved": "https://registry.npmjs.org/markdown-it-footnote/-/markdown-it-footnote-4.0.0.tgz", + "integrity": "sha512-WYJ7urf+khJYl3DqofQpYfEYkZKbmXmwxQV8c8mO/hGIhgZ1wOe7R4HLFNwqx7TjILbnC98fuyeSsin19JdFcQ==", + "dev": true, + "license": "MIT" + }, "node_modules/markdown-it-mathjax3": { "version": "4.3.2", "resolved": "https://registry.npmjs.org/markdown-it-mathjax3/-/markdown-it-mathjax3-4.3.2.tgz", diff --git a/package.json b/package.json index 2744e3a..ee433c8 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,7 @@ { "devDependencies": { "lite-youtube-embed": "^0.3.3", + "markdown-it-footnote": "^4.0.0", "markdown-it-mathjax3": "^4.3.2", "vitepress": "^1.3.2" },