mermaid-js / mermaid-cli

Command line tool for the Mermaid library
MIT License
2.23k stars 210 forks source link

Bug: CSS Styling Not Applied to SVG (only PNG / static image) #632

Open titanism opened 6 months ago

titanism commented 6 months ago

SVG does not render styling:

Screen Shot 2024-01-05 at 1 40 02 AM

PNG does:

Screen Shot 2024-01-05 at 1 40 06 AM

This is a core bug, unless there's some missing option we need to pass? Note that this is via parseMMD usage (not using CLI, but programmatic via parseMMD and our own puppeteer.launch() browser instance.