Skip to content

enable mermaid-cli api to generate svg as alternative to mermaid api #80

@JoxJax

Description

@JoxJax

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions