Open arthurbrenno opened 1 month ago
I think this is a duplicate of: https://github.com/mermaid-js/mermaid-cli/issues/691
TLDR:
It looks like this is an issue with mermaid-cli after all: [Mermaid's] SVG uses foreignObject to embed HTML text. Supporting this would basically involve having a whole HTML renderer inside librsvg. Please tell mermaid-cli to use SVG text elements instead.
Describe the bug I'm trying to generate a mermaid diagram from an ouput. The output generates valid mermaid diagram in mermaid.live, but the generated output using the cli just gives me a diagram with no text.
To Reproduce Execute this function:
Expected behavior To generate a mermaid diagram with the original text in it.
Screenshots any diagram will look like this:
I'm using mmdc 10.3.1, NixOS (Google IDX) with pkgs.mermaid-cli.
Additional context Add any other context about the problem here.