fix: force update mdx config and clear cache

This commit is contained in:
kennethcheng 2026-04-27 14:05:40 +08:00
parent 119f411a27
commit 7344e8a4c0

View File

@ -1,23 +1,20 @@
import { defineConfig } from 'astro/config'; import { defineConfig } from 'astro/config';
import tailwind from '@tailwindcss/vite'; import tailwind from '@tailwindcss/vite';
import mdx from '@astrojs/mdx';
import remarkMath from 'remark-math'; import remarkMath from 'remark-math';
import rehypeKatex from 'rehype-katex'; import rehypeKatex from 'rehype-katex';
import rehypePrettyCode from 'rehype-pretty-code'; import rehypePrettyCode from 'rehype-pretty-code';
import mdx from '@astrojs/mdx';
export default defineConfig({ export default defineConfig({
integrations: [mdx()],
vite: { vite: {
plugins: [tailwind()] plugins: [tailwind()]
}, },
markdown: { markdown: {
remarkPlugins: [remarkMath], remarkPlugins: [remarkMath],
rehypePlugins: [ rehypePlugins: [
rehypeKatex, rehypeKatex,
[rehypePrettyCode, { theme: 'github-dark' }] [rehypePrettyCode, { theme: 'github-dark' }]
] ]
}, }
});
integrations: [mdx()]
});