remark, gfm and mermaid support #932
-
GitHub is currently planning to add mermaid support to GitHub.com github/roadmap#372
There is also a rehype plugin
Is there interest in adopting one of these plugins into the remarkjs org? |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 10 replies
-
There’s also gatsby-remark-mermaid. I didn’t create it, but the original owner didn’t want to maintain it anymore. |
Beta Was this translation helpful? Give feedback.
-
Thinking some more on this, and based off some discussion with @remcohaszing. A mono-repo with several packages. A generic remark plugin to parse/annotate mermaid blocks, along side several rehype backends to generate the charts. Allowing for flexibility for running mermaid inside puppeteer, playwright, a browser, a virtual dom, etc. |
Beta Was this translation helpful? Give feedback.
-
I’m thinking of porting it to a version that doesn‘t require the DOM. Similar to lowlight/refractor/remarkjs/remark-math#41. If possible |
Beta Was this translation helpful? Give feedback.
-
Another thing that might be interesting to consider is support for responsive light/dark mode. |
Beta Was this translation helpful? Give feedback.
-
I have been thinking that maybe rehype is a better fit for processing mermaid charts than remark since mermaid produces SVG elements.
|
Beta Was this translation helpful? Give feedback.
-
I created Also |
Beta Was this translation helpful? Give feedback.
I created
rehype-mermaidjs
, which may also be added to this list. :)Also
remark-mermaidjs
supports remark 14.