Skip to content

Commit 3cdf8d7

Browse files
authored
Merge pull request #1047 from processing/1044-20
Adding Mermaid diagram support #168 (#1044)
2 parents de002ab + 423e5e3 commit 3cdf8d7

File tree

4 files changed

+1332
-136
lines changed

4 files changed

+1332
-136
lines changed

astro.config.mjs

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ import mdx from "@astrojs/mdx";
44
import tailwind from "@astrojs/tailwind";
55
import serviceWorker from "astrojs-service-worker";
66
import fast from "./src/scripts/fast-compress";
7+
import mermaid from 'astro-mermaid';
78

89
// Allow skipping compression step for faster test build times
910
// DO NOT SKIP COMPRESSION FOR DEPLOYMENT!
@@ -20,6 +21,7 @@ export default defineConfig({
2021
site: 'https://p5js.org',
2122
compressHTML: false,
2223
integrations: [
24+
mermaid({autoTheme: true}),
2325
preact({
2426
compat: true,
2527
}),

0 commit comments

Comments
 (0)