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