It appears the mermaid api called by "@excalidraw/mermaid-to-excalidraw" assumes a browser and uses the DOM, making the package difficult to use from Node.js.
Would it be possible to use mermaid-cli instead to break this dependency? mermaid-cli seems to expose an api and can be run in node.js directly to generate svg output. (https://github.com/mermaid-js/mermaid-cli )
my use case is for rendering complex sequences in mermaid (based on database data) and then touch up and unclutter in excalidraw. There currently seems to be a limit on the number of rows of mermaid code that will render in the web service so being able to do so locally would be nice
It appears the mermaid api called by "@excalidraw/mermaid-to-excalidraw" assumes a browser and uses the DOM, making the package difficult to use from Node.js.
Would it be possible to use mermaid-cli instead to break this dependency? mermaid-cli seems to expose an api and can be run in node.js directly to generate svg output. (https://github.com/mermaid-js/mermaid-cli )
my use case is for rendering complex sequences in mermaid (based on database data) and then touch up and unclutter in excalidraw. There currently seems to be a limit on the number of rows of mermaid code that will render in the web service so being able to do so locally would be nice