Skip to content

Commit

Permalink
feat: Add Mermaid diagram support to markdown rendering
Browse files Browse the repository at this point in the history
  • Loading branch information
dharamveergit authored Feb 7, 2025
1 parent 95cbbe1 commit 4b35a11
Show file tree
Hide file tree
Showing 5 changed files with 1,422 additions and 20 deletions.
3 changes: 2 additions & 1 deletion astro.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,13 @@ import astroExpressiveCode from "astro-expressive-code";
import { defineConfig } from "astro/config";
import remark from "remark-directive";
import { customAsidePlugin } from "./src/lib/aside/customAsidePlugin";
import { mermaid } from "./src/utils/mermaid";
import { redirects } from "./src/utils/redirects";

export default defineConfig({
redirects: redirects,
markdown: {
remarkPlugins: [remark, customAsidePlugin],
remarkPlugins: [remark, mermaid, customAsidePlugin],
},
integrations: [
tailwind(),
Expand Down
Loading

0 comments on commit 4b35a11

Please sign in to comment.