Skip to content

Commit

Permalink
install rehype-mermaidjs
Browse files Browse the repository at this point in the history
  • Loading branch information
dghelm committed Aug 5, 2023
1 parent 6740b55 commit cec599d
Show file tree
Hide file tree
Showing 3 changed files with 487 additions and 10 deletions.
2 changes: 2 additions & 0 deletions astro.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ import mdx from "@astrojs/mdx"
import rehypeSlug from "rehype-slug"
import rehypeAutolinkHeadings from "rehype-autolink-headings"
import rehypeKatex from "rehype-katex"
import rehypeMermaid from "rehype-mermaidjs"
import remarkGfm from "remark-gfm"
import remarkMath from "remark-math"
import image from "@astrojs/image"
Expand Down Expand Up @@ -51,6 +52,7 @@ export default defineConfig({
remarkPlugins: [remarkMath, remarkGfm],
rehypePlugins: [
rehypeSlug,
[rehypeMermaid, { strategy: "img-png" }],
[
rehypeAutolinkHeadings,
{
Expand Down
Loading

0 comments on commit cec599d

Please sign in to comment.