McShelby / hugo-theme-relearn

A theme for Hugo designed for documentation
https://mcshelby.github.io/hugo-theme-relearn/
MIT License
426 stars 186 forks source link

mermaid: classDiagram breaks when using <<interface>> #895

Closed koenyskout closed 2 months ago

koenyskout commented 2 months ago

When I create a mermaid diagram as follows (which works fine in mermaid's live editor), mermaid shows a "Syntax error in text" error on my hugo site.

```mermaid
classDiagram

class Foo {
  +a: int
}
<<interface>> Foo


The `<<interface>>` line is the culprit. I assume this is due to some HTML sanitization issue, where `<interface>` might be misinterpreted as a HTML tag.
McShelby commented 2 months ago

Thanks for submitting. I fixed it pushed it. Check it out.

koenyskout commented 2 months ago

Works perfectly, thanks!