Open dougthor42 opened 5 years ago
It appears that class styles don't work.
Add the following to a document:
<flow> graph TD; vm[Virtual Machine] --> veeam(Veeam Backup<br>Daily); classDef Hardware fill:#f9f,stroke:#972,stroke-width:4px; classDef Actor fill:#fff,stroke:#000,stroke-width:4px; class vm Hardware; class veeam Actor; </flow>
and then preview the document.
Live Editor Results
Using explicit style values works:
style
<flow> graph TD; vm[Virtual Machine] --> veeam(Veeam Backup<br>Daily); style vm fill:#f9f,stroke:#972,stroke-width:4px; style veeam fill:#fff,stroke:#000,stroke-width:4px; </flow>
flowcharts
I patched this with the latest version of mermaidjs and added a security loose option that fixes this. Confirmed that it works in the latest version of master. Good luck!
Summary
It appears that class styles don't work.
Steps to Reproduce:
Add the following to a document:
and then preview the document.
Expected Results:
Live Editor Results
Actual Results:
Other Notes:
Using explicit
style
values works:Version Info:
flowcharts
plugin: 2018-06-15