First draft
This commit is contained in:
@@ -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'],
|
||||
},
|
||||
}
|
||||
});
|
||||
Reference in New Issue
Block a user