Added mermaid support

This commit is contained in:
ClovertaTheTrilobita 2026-04-13 20:59:08 +03:00
parent c626bdbb07
commit 703a63fffc
3 changed files with 1347 additions and 8 deletions

View file

@ -2,6 +2,7 @@
import { defineConfig } from 'astro/config';
import sitemap from "@astrojs/sitemap";
import svelte from "@astrojs/svelte";
import rehypeMermaid from "rehype-mermaid";
// https://astro.build/config
import { fileURLToPath } from 'node:url'
@ -18,4 +19,7 @@ export default defineConfig({
"/": "/zh",
},
integrations: [sitemap(), svelte()],
markdown: {
rehypePlugins: [rehypeMermaid],
},
})

1349
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -17,6 +17,8 @@
"@astrojs/sitemap": "^3.7.1",
"@astrojs/svelte": "^8.0.4",
"astro": "^6.0.8",
"playwright": "^1.59.1",
"rehype-mermaid": "^3.0.0",
"url": "^0.11.4"
},
"devDependencies": {