33 lines
823 B
JavaScript
33 lines
823 B
JavaScript
// @ts-check
|
|
import { defineConfig } from "astro/config";
|
|
import remarkMath from "remark-math";
|
|
import rehypeMathjax from "rehype-mathjax"
|
|
import rehypeCallouts from "rehype-callouts";
|
|
// @ts-ignore
|
|
import { remarkKroki } from "remark-kroki";
|
|
|
|
import mdx from '@astrojs/mdx';
|
|
|
|
// https://astro.build/config
|
|
export default defineConfig({
|
|
integrations: [mdx()],
|
|
markdown: {
|
|
remarkPlugins: [
|
|
remarkMath, [
|
|
remarkKroki, {
|
|
alias: ["mermaid", "tikz"],
|
|
server: "https://kroki.io",
|
|
target: "mdx3",
|
|
output: "inline-svg"
|
|
}
|
|
]],
|
|
rehypePlugins: [rehypeMathjax, [rehypeCallouts, { theme: "obsidian" }]],
|
|
shikiConfig: {
|
|
theme: "one-dark-pro",
|
|
},
|
|
syntaxHighlight: {
|
|
type: 'shiki',
|
|
excludeLangs: ['mermaid', 'math'],
|
|
},
|
|
}
|
|
}); |