First draft

This commit is contained in:
2026-02-20 07:31:50 +01:00
committed by Daniel Kluge
parent 75a2514b05
commit fd1cf2e72c
55 changed files with 6202 additions and 5102 deletions

View File

@@ -1,5 +1,33 @@
// @ts-check
import { defineConfig } from 'astro/config';
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({});
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'],
},
}
});