mirror of
https://github.com/logos-storage/logos-storage-docs.git
synced 2026-01-08 16:23:11 +00:00
Enable markdown footnote (#18)
This commit is contained in:
parent
8fd4e07776
commit
ab218165e3
@ -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
8
package-lock.json
generated
@ -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",
|
||||
|
||||
@ -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"
|
||||
},
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user