feat: inject markdown ast plugins into astro config

This commit is contained in:
kennethcheng 2026-04-27 13:10:14 +08:00
parent bfc834840a
commit c2897a7aa9

View File

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