20 lines
370 B
TypeScript
20 lines
370 B
TypeScript
import { defineConfig } from 'astro/config';
|
|
import rehypeKatex from 'rehype-katex';
|
|
import remarkMath from 'remark-math';
|
|
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
markdown: {
|
|
remarkPlugins: [
|
|
remarkMath
|
|
],
|
|
rehypePlugins: [
|
|
[rehypeKatex, {output: 'mathml'}]
|
|
],
|
|
shikiConfig: {
|
|
theme: 'min-light'
|
|
}
|
|
}
|
|
});
|