You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
is there a way to render mermaid.js diagrams to svg from node.js (server) app
without starting "headless" web browser via mermaid cli as it was suggested in some comments?
if not, what would be required to add or change in the system to enable such rendering?
thank you
Example
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered:
It's not currently possible unfortunately, since Mermaid relies on the browser's layout engine to correctly size/place items. As far as I'm aware, this isn't possible with jsdom (what most people use for server-side rendering).
It might be possible with the svgdom library, though, but nobody has yet tried it out.
Contributions are welcome though (although please add any comments to issue #3650)!
This is a pretty heavily requested feature, so it would be amazing if we could get proper server-side rendering working.
Duplicate of #3650Edit: Looks like GitHub needs to have a separate comment for it to automatically add "duplicate of ..." text.
Proposal
is there a way to render mermaid.js diagrams to svg from node.js (server) app
without starting "headless" web browser via mermaid cli as it was suggested in some comments?
if not, what would be required to add or change in the system to enable such rendering?
thank you
Example
No response
Screenshots
No response
The text was updated successfully, but these errors were encountered: