barrettruth.com/astro.config.mjs

26 lines
546 B
JavaScript

import { defineConfig } from "astro/config";
import mdx from "@astrojs/mdx";
import remarkMath from "remark-math";
import rehypeKatex from "rehype-katex";
export default defineConfig({
trailingSlash: "always",
build: {
format: "directory",
},
integrations: [
mdx({
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
}),
],
markdown: {
remarkPlugins: [remarkMath],
rehypePlugins: [rehypeKatex],
shikiConfig: {
theme: "github-light",
langs: [],
wrap: true,
},
},
});