markdown-viewer icon indicating copy to clipboard operation
markdown-viewer copied to clipboard

Mermaid: Allow to use newer rendering engine

Open klaus-neuner-bl opened this issue 11 months ago • 2 comments
trafficstars

It would be great to be able to change the rendering engine of, e.g., mermaid. It uses the mermaid version 10.8.0, which is not able to render the, e.g., coloring or namespaces with dots in it.

klaus-neuner-bl avatar Dec 17 '24 14:12 klaus-neuner-bl

The used version 10.8.0 is not able to render this piece of code:

classDiagram
direction TD

class Animal

class Duck
Animal <|-- Duck

class Goose
Animal <|-- Goose

namespace animals {
    class Animal
}

namespace animals.birds {
    class Duck:::animals_birds
    class Goose:::animals_birds
}

classDef animals_birds color:lightgreen, fill:darkgreen, stroke: lightgreen

It ends up with the error image. Like this mermaid version here ;-).

klaus-neuner-bl avatar Dec 17 '24 14:12 klaus-neuner-bl

Thanks for the feedback. Mermaid will be updated to a newer version in the next release. All third-party libraries are bundled with the extension, so there is no plans to support switching between Mermaid versions.

simov avatar Dec 17 '24 15:12 simov

is there some way to direct update mermaid version?

dongshen avatar Jul 24 '25 01:07 dongshen