// @ts-check import { defineConfig } from "astro/config"; import { remarkModifiedTime } from './src/remark-modified-time.mjs'; 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: [ remarkModifiedTime, 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'], }, } });