Enable markdown footnote (#18)

This commit is contained in:
Slava 2024-09-28 23:23:08 +03:00 committed by GitHub
parent 8fd4e07776
commit ab218165e3
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
3 changed files with 14 additions and 1 deletions

View File

@ -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,

8
package-lock.json generated
View File

@ -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",

View File

@ -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"
},