From aa5212ba5aee063d2f6f859cf9de1ff084c9c12e Mon Sep 17 00:00:00 2001 From: camera-2018 <2907618001@qq.com> Date: Thu, 21 Sep 2023 14:12:33 +0800 Subject: [PATCH] =?UTF-8?q?chore:=20=E5=86=85=E7=BD=AE=E7=9A=84=20latex?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .vitepress/config.js | 101 +------------------------------------------ 1 file changed, 1 insertion(+), 100 deletions(-) diff --git a/.vitepress/config.js b/.vitepress/config.js index 811b2d2..0cd0c29 100644 --- a/.vitepress/config.js +++ b/.vitepress/config.js @@ -1,102 +1,11 @@ // import { defineConfig } from 'vitepress' import { withMermaid } from "vitepress-plugin-mermaid-xyxsw"; -import mathjax3 from 'markdown-it-mathjax3'; import { main_sidebar, chapter2, chapter3, chapter4, chapter5, chapter6, chapter7, chapter8, chapter9 } from './sidebar.js'; import { nav } from './nav.js'; import PanguPlugin from 'markdown-it-pangu' import { fileURLToPath, URL } from 'node:url' import VueMacros from 'unplugin-vue-macros/vite' -const customElements = [ - 'mjx-container', - 'mjx-assistive-mml', - 'math', - 'maction', - 'maligngroup', - 'malignmark', - 'menclose', - 'merror', - 'mfenced', - 'mfrac', - 'mi', - 'mlongdiv', - 'mmultiscripts', - 'mn', - 'mo', - 'mover', - 'mpadded', - 'mphantom', - 'mroot', - 'mrow', - 'ms', - 'mscarries', - 'mscarry', - 'mscarries', - 'msgroup', - 'mstack', - 'mlongdiv', - 'msline', - 'mstack', - 'mspace', - 'msqrt', - 'msrow', - 'mstack', - 'mstack', - 'mstyle', - 'msub', - 'msup', - 'msubsup', - 'mtable', - 'mtd', - 'mtext', - 'mtr', - 'munder', - 'munderover', - 'semantics', - 'math', - 'mi', - 'mn', - 'mo', - 'ms', - 'mspace', - 'mtext', - 'menclose', - 'merror', - 'mfenced', - 'mfrac', - 'mpadded', - 'mphantom', - 'mroot', - 'mrow', - 'msqrt', - 'mstyle', - 'mmultiscripts', - 'mover', - 'mprescripts', - 'msub', - 'msubsup', - 'msup', - 'munder', - 'munderover', - 'none', - 'maligngroup', - 'malignmark', - 'mtable', - 'mtd', - 'mtr', - 'mlongdiv', - 'mscarries', - 'mscarry', - 'msgroup', - 'msline', - 'msrow', - 'mstack', - 'maction', - 'semantics', - 'annotation', - 'annotation-xml', -]; - // https://vitepress.dev/reference/site-config export default withMermaid({ lang: 'zh-CN', @@ -145,17 +54,9 @@ export default withMermaid({ markdown: { lineNumbers: true, config: (md) => { - md.use(mathjax3); md.use(PanguPlugin); }, - }, - vue: { - template: { - compilerOptions: { - isCustomElement: (tag) => customElements.includes(tag), - }, - }, - + math: true }, sitemap: { hostname: 'https://hdu-cs.wiki'