Skip to content

Mermaid Support #128

@Pasithea0

Description

@Pasithea0

I'm trying to add mermaid charts to my site, but neither remark-mermaidjs or rehype-mermaid works.

Here is my code, but it does not work:

import rehypeMermaid from "rehype-mermaid";

  const mermaid: Plugin = {
      transformers: [{
          execution: "async",
          type: "rehype",
          transform({ processor }) {
              processor.use(rehypeMermaid, {
                // The default strategy is "inline-svg"
                // strategy: "img-png"
                // strategy: "img-svg"
                // strategy: "inline-svg"
                // strategy: "pre-mermaid"
              })
          }
      }]
  }

Any help is greatly appreciated!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions