excalidraw / mermaid-to-excalidraw

Generate Excalidraw diagrams from Mermaid
https://mermaid-to-excalidraw.vercel.app
MIT License
248 stars 43 forks source link

Question: Is there a way to get an export from excalidraw to mermaid? #66

Open danieltome opened 3 months ago

danieltome commented 3 months ago

I've tried searching but can't find anything available. Do you know if there's a way to do excalidraw to mermaid?

chiefkana commented 3 months ago

Same thing here!

ad1992 commented 3 months ago

No, currently there is no way to convert from Excalidraw to Mermaid. Could you please share the scenarios where you would need this feature?

chiefkana commented 2 months ago

Most of My Company's frontend documentation is based on drawings made in excalidraw, as of now we are migrating to customizable mermaid snippets in frontends wiki, so the question appeared. If it is not a case as of now, will be happy to work on it.

DenFin commented 1 month ago

This would be incredibly helpful. I'm interested in this as well but wouldn't know where to start honestly

ad1992 commented 1 month ago

On a high-level overview, I think this is doable as we need to identify mainly the nodes, edges, and text and start constructing the mermaid syntax based on that. However, one of the main challenges could be to port to the correct type of mermaid diagram and for that, if we start storing mermaidType in the converted excalidraw diagrams then that would become easier.

kheerand commented 1 month ago

+1 for this feature.

My use-case:

I have lots of systems diagrams in Excalidraw, and use it for analysis of complex systems. I am interested in harnessing the power of AI, to look across multiple systems diagrams and gain new insights. Mermaid is ideal for AI models to understand the systems, Excalidraw is excellent for humans to explore the systems. So, being able to go from one to the other would be fantastic and reduce the errors I currently have in getting AI vision systems to try and recreate the Excalidraw diagram in Mermaid.

bselwayregis commented 4 weeks ago

This is pretty much exactly my use case as well ☝️

jpetrantoni commented 5 days ago

+1 on this

I think theres too many edge cases for it to be officially supported. The best bet might to use the outputted json to reconstruct it.