jgraph / docker-drawio

Dockerized draw.io based on whichever is the most secure image at the time.
GNU General Public License v3.0
1.48k stars 359 forks source link

Embed Mermaid.Js Code #148

Closed sabinayakc closed 7 months ago

sabinayakc commented 7 months ago

Hello,

I am using draw.io to embed diagrams however recently I had a requirement to embed mermaid.js syntax using draw.io.

Is there any way to do that? I was looking at the code and I see that mermaidJsToDrawIo is not exposed as a post hook.

I know we can use the insert option via the main url. But wanted to check if there's a way or something as a feature we can work on.

Let me know if you could point me in the right direction.

PS: I tried using mermaidjs to embed but we wanted to have drawio be the central source for all diagrams.