Open
Description
When using Mermaid diagrams with annotations on classes, for example <<interface>>
, an error is thrown.
This is due to the fact that the parser is not able to parse the annotation.
classDiagram
class Shape
<<interface>> Shape
Shape : noOfVertices
Shape : draw()
Removing safeHTML
in render-codeblock-mermaid.html
fixes the issue.
<div class="mermaid">
{{- .Inner | safeHTML }}
</div>
{{ .Page.Store.Set "hasMermaid" true }}
<div class="mermaid">
{{- .Inner }}
</div>
{{ .Page.Store.Set "hasMermaid" true }}
Metadata
Metadata
Assignees
Labels
No labels