mermaid-js / mermaid-cli

Command line tool for the Mermaid library
MIT License
2.31k stars 223 forks source link

convert to xml mxgraphmodel which is supported by draw.io #581

Closed BoovendanM closed 1 year ago

BoovendanM commented 1 year ago

convert to xml mxgraphmodel which is supported by draw.io.

This feature will be highly helpful to load the mermaid script generated through ai to draw io for further modifications

Yokozuna59 commented 1 year ago

draw.io already supports mermaid, just insert the the mermaid code. Here's how to insert mermaid code: https://drawio-app.com/blog/create-mermaid-diagrams-in-draw-io/.

BoovendanM commented 1 year ago

Looking forward to use the embedded draw.io with mermaid script dynamically remoted to the drawio in program..

To achieve this need to convert the mermaid script to mxgraph xml which drawio understands..

aloisklink commented 1 year ago

It's a good idea @BoovendanM, but I think it's out of scope for the mermaid-cli project (especially since none of maintainers of mermaid-cli have Draw.IO or MXGraph experience).

My feeling is that this would be a separate package, maybe named something like mermaid-to-mxgraph?