You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@dzello That would be me :-), and mermaid support was added by taking inspiration from https://gohugo.io/content-management/diagrams/#mermaid-diagrams where safeHTML is suggested. Since the input to this codeblock is user defined, I guess we could be ok to remove it. It essentially means that we need to understand what would be the attack vector if we were to remove it.
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.
Removing
safeHTML
inrender-codeblock-mermaid.html
fixes the issue.The text was updated successfully, but these errors were encountered: