Skip to content

Mermaid with ReactMarkdown & Next.js #4251

Answered by sidharthv96
celinehaddad asked this question in Q&A
Discussion options

You must be logged in to vote

Hi Celine,

Why is this second diagram not working at any of the version numbers, but it works on mermaid.live?

I tried with vanilla HTML and it works. Try if removing the <br/> helps with the flowchart.
https://stackblitz.com/edit/web-platform-i3pncs?file=index.html

Is there a way to get more than one version of mermaid to be supported by your app, so I can support the older diagrams, and also the newer mermaid syntax?

One of Mermaid's core principles is to not break compatibility with diagrams between versions. So all diagrams should be supported in new versions. The erDiagram issue is a bug, which needs to be investigated.

You could try to use different selector classes https://merm…

Replies: 2 comments 1 reply

Comment options

You must be logged in to vote
1 reply
@celinehaddad
Comment options

Answer selected by celinehaddad
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants