Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
SeriousBug opened this issue May 20, 2022 · 0 comments

Comments

@SeriousBug
Copy link

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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Development

No branches or pull requests

1 participant