feat: add tex(?) formula support

This commit is contained in:
草师傅 2025-07-10 18:05:41 +08:00
parent 414cd7d3d7
commit d6e1a9dd94
Signed by: gb
GPG key ID: 43330A030E2D6478
5 changed files with 145 additions and 1 deletions

View file

@ -6,6 +6,8 @@ import mdx from '@astrojs/mdx';
import cloudflare from '@astrojs/cloudflare';
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
export default defineConfig({
site: 'https://terminal-blog.example.com',
@ -25,6 +27,8 @@ export default defineConfig({
theme: 'nord',
wrap: true
},
remarkPlugins: [ remarkMath ],
rehypePlugins: [ rehypeKatex ]
},
integrations: [sitemap(), mdx()],