Describe the bug
Structurizr-generated mermaid diagram renders in live editor, but generates an error when I try to render it in an HTML file. specifically, Structurizr generates a lot of inner html divs with style attributes, and the mermaid parser does not behave correctly when escaping the style parts. What bugs me is that it works perfectly inside the mermaid live editor, so I assume that it should work correctly when using the js library inside my own page.
To Reproduce
Steps to reproduce the behavior:
take a generated Structurizr example in mermaid markup (see here)
Describe the bug Structurizr-generated mermaid diagram renders in live editor, but generates an error when I try to render it in an HTML file. specifically, Structurizr generates a lot of inner html divs with style attributes, and the mermaid parser does not behave correctly when escaping the style parts. What bugs me is that it works perfectly inside the mermaid live editor, so I assume that it should work correctly when using the js library inside my own page.
To Reproduce Steps to reproduce the behavior:
Expected behavior Same graph is rendered from index.zip
Screenshots console error :
Desktop (please complete the following information):