Skip to content

Migrate grok-mermaid -> lovely-mermaid #8157

Description

@xl0

What do you want to change?

Migrate grok-mermaid -> lovely-mermaid

Why?

grok-mermaid was a 1:1port of the grok build mermaid render with ~0 human intervention. I inherites a crapton of corner cases and limitations from the original.

lovely-mermad got a lot more effort, the parseers have been reworked completely to be more robust and expand the number of supported diagrams, and the existing ones got some nice features. Too many small things to list really. Here is an incomplete 1:1 comparison: https://xl0.github.io/lovely-mermaid-comparison/

Also he's a lovely-mermaid demo page with many examples, and you can put your own diagrams there to test and share: https://xl0.github.io/lovely-mermaid

Besides all the fixes, it also supports styles and OSC 8 links:

Image Image

I had concerns that it would look crappy with the light theme, but seems to be ok actually.

How? (optional)

PR

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