Skip to content

Commit

Permalink
[5_36] 插入mathjax插件
Browse files Browse the repository at this point in the history
  • Loading branch information
Yuki authored and da-liii committed Jan 8, 2025
1 parent e225818 commit 34aca9a
Show file tree
Hide file tree
Showing 3 changed files with 280 additions and 1 deletion.
9 changes: 8 additions & 1 deletion docs/.vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,5 @@
import mathjax3 from 'markdown-it-mathjax3'

export default {
title: 'Mogan STEM Suite',
outDir: "../website",
Expand Down Expand Up @@ -46,7 +48,12 @@ export default {
ignoreDeadLinks: false,
head: [
['link', {rel: 'icon', href: '/favicon.png'}],
]
],
markdown: {
config(md) {
md.use(mathjax3);
},
}
}

function nav() {
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
"author": "XmacsLabs",
"license": "MIT",
"devDependencies": {
"markdown-it-mathjax3": "^4.3.2",
"vitepress": "^1.5.0",
"vue": "^3.5.13"
},
Expand Down
Loading

0 comments on commit 34aca9a

Please sign in to comment.