From b4830e03ac8b5ec7fc6ca33119706c18907c8cb9 Mon Sep 17 00:00:00 2001 From: EveSunMaple <121652165+EveSunMaple@users.noreply.github.com> Date: Sun, 29 Oct 2023 19:22:19 +0800 Subject: [PATCH] feat: remark-math rehype-katex katex (#2) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 数学公式渲染 --- astro.config.mjs | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/astro.config.mjs b/astro.config.mjs index 0cce76b..8d71655 100644 --- a/astro.config.mjs +++ b/astro.config.mjs @@ -32,8 +32,8 @@ export default defineConfig({ }) ], markdown: { - remarkPlugins: [remarkReadingTime], - rehypePlugins: [], + remarkPlugins: [remarkMath], + rehypePlugins: [rehypeKatex] }, redirects: { '/': '/page/1', @@ -50,4 +50,4 @@ export default defineConfig({ } } }, -}); \ No newline at end of file +});