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
When using remark-mermaid with remark-rehype, class diagrams that contain <<annotations>> result in a badly escaped output that causes mermaid to throw an error. For example:
classDiagram
class Shape{
<<interface>>
noOfVertices
draw()
}
class Color{
<<enumeration>>
RED
BLUE
GREEN
}
When using
remark-mermaidwithremark-rehype, class diagrams that contain<<annotations>>result in a badly escaped output that causes mermaid to throw an error. For example:classDiagram class Shape{ <<interface>> noOfVertices draw() } class Color{ <<enumeration>> RED BLUE GREEN }The resulting error:

For anyone else encountering this error, we have a fixed fork available: https://www.npmjs.com/package/@dendronhq/remark-mermaid
Repository: https://github.com/dendronhq/remark-mermaid
We'd also be happy to get the fix merged here if this package is still maintained.