From 66caa7f6b2af3e591383973c1260971c6e939720 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=8C=97=E9=9B=81=E4=BA=91=E4=BE=9D?= <14120445+BeiyanYunyi@users.noreply.github.com> Date: Fri, 25 Aug 2023 08:45:15 +0800 Subject: [PATCH] =?UTF-8?q?chore=EF=BC=9A=E4=BD=BF=E7=94=A8markdown-it-pan?= =?UTF-8?q?gu=EF=BC=88#139=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- docs/.vuepress/config.ts | 7 ++++++- docs/.vuepress/env.d.ts | 5 +++++ docs/.vuepress/theme.ts | 6 +++--- 3 files changed, 14 insertions(+), 4 deletions(-) create mode 100644 docs/.vuepress/env.d.ts diff --git a/docs/.vuepress/config.ts b/docs/.vuepress/config.ts index 489a5be..1676c86 100644 --- a/docs/.vuepress/config.ts +++ b/docs/.vuepress/config.ts @@ -1,4 +1,5 @@ import { defineUserConfig } from "vuepress"; +import mdPangu from "markdown-it-pangu"; import theme from "./theme"; export default defineUserConfig({ @@ -8,5 +9,9 @@ export default defineUserConfig({ base: "/", + extendsMarkdown: (md) => { + md.use(mdPangu); + }, + theme, -}); \ No newline at end of file +}); diff --git a/docs/.vuepress/env.d.ts b/docs/.vuepress/env.d.ts new file mode 100644 index 0000000..5f4e907 --- /dev/null +++ b/docs/.vuepress/env.d.ts @@ -0,0 +1,5 @@ +declare module 'markdown-it-pangu'{ + import { PluginSimple } from 'markdown-it' + const pangu: PluginSimple + export default pangu +} \ No newline at end of file diff --git a/docs/.vuepress/theme.ts b/docs/.vuepress/theme.ts index 52e4634..93a19a8 100644 --- a/docs/.vuepress/theme.ts +++ b/docs/.vuepress/theme.ts @@ -54,9 +54,9 @@ export default hopeTheme({ footnote: true, mark: true, tasklist: true, - imageMark: true, - imageSize: true, - tex: true, + imgMark: true, + imgSize: true, + katex: true, }, }, });