stackedit icon indicating copy to clipboard operation
stackedit copied to clipboard

mermaidjs can't render htmlLabels

Open kierandg opened this issue 2 years ago • 0 comments

  • mermaid htmlLabels does not work correctly, the tag <br/> is rendered but <span> is not
  • The font awesome does not render at the editing time (just rendered after export)
```mermaid

%%{init: { 
	"theme": "forest",
	"flowchart": { "htmlLabels": true, "curve": "basis" }},
	"securityLevel": "loose"
}%%

flowchart LR

A[Text 1<br/><span style="color: red">text 2</span>] --> B["fa:fa-comment-dots<br/>Comment"]
```

Expected result: The html part <span> of the label is rendered correctly

kierandg avatar Sep 23 '22 09:09 kierandg