Skip to content

Mermaid class diagrams with <<annotations>> in simple mode result in mangled output with remark-rehype #11

@SeriousBug

Description

@SeriousBug

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
}
Loading

The resulting error:
An error message: "Syntax error in graph"

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions