Mermaid Plugin #49
directormac
started this conversation in
Ideas
Replies: 1 comment
-
Hi! It seems like there is a Rehype rehype plugin doing exactly that. Using that should be quite easy: import { type Plugin } from 'carta-md';
import rehypeMermaid from 'rehype-mermaid';
const mermaid: Plugin = {
transformers: [{
execution: 'sync',
type: 'rehype',
transform({ processor }) {
processor.use(rehypeMermaid)
}
}]
} I've not tested it, but I think it will work fine. |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi i'd like to request a plugin for mermaidjs!
(MermaidJS)[https://mermaid.js.org]
also congrats on 4.0 release, will use it on my next project!!
Beta Was this translation helpful? Give feedback.
All reactions