mirror of
https://github.com/ClovertaTheTrilobita/SanYeCao-blog.git
synced 2026-07-03 15:41:26 +00:00
Added mermaid support
This commit is contained in:
parent
c626bdbb07
commit
703a63fffc
3 changed files with 1347 additions and 8 deletions
|
|
@ -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
1349
package-lock.json
generated
File diff suppressed because it is too large
Load diff
|
|
@ -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": {
|
||||
|
|
|
|||
Loading…
Reference in a new issue