add formula support in two pathes

This commit is contained in:
Jiao77
2026-03-01 20:49:27 +08:00
parent dd42d0a10d
commit c15b1910a2
9 changed files with 520 additions and 239 deletions

View File

@@ -4,6 +4,8 @@ import mdx from '@astrojs/mdx';
import vue from '@astrojs/vue';
import tailwind from '@astrojs/tailwind';
import react from '@astrojs/react';
import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex';
// https://astro.build/config
export default defineConfig({
@@ -24,6 +26,8 @@ export default defineConfig({
theme: 'github-dark',
wrap: true,
},
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
},
vite: {
ssr: {