remarkjs / remark-gfm

remark plugin to support GFM (autolink literals, footnotes, strikethrough, tables, tasklists)

Home Page:https://remark.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Mermaid support

nuvacore opened this issue · comments

Initial checklist

Problem

Github supports Mermaid, gfm does not.

Solution

Can you add support for Mermaid?

Alternatives

?

Github supports Mermaid, gfm does not.

That is the crux of the problem.
GitHub.com and GFM (both by GitHub) are different, and have been diverging for a while.
GFM the standard maintained by GitHub does not include Mermaid.
https://github.github.com/gfm/


https://github.com/orgs/remarkjs/discussions/932
Has some discussion on offering some mermaid support through a separate plugin.
And some candidates that you could try today

In addition to @ChristianMurphy's comment, I'd like to add that remark-gfm adds support for syntax. Mermaid support is different, it needs to transform the AST.

Also Mermaid doesn't work in Node.js. If remark-gfm added support, it would require some heavy dependencies like Mermaid and Puppeteer.

commented

This is out of scope for this package. This package focusses on GFM. Which is the parsing side in markdown. Supporting mermaid is something that GH does which is not part of GFM. And is solved in the HTML postprocessing stages.

Hi! This was closed. Team: If this was fixed, please add phase/solved. Otherwise, please add one of the no/* labels.