fralau / mkdocs-mermaid2-plugin

A Mermaid graphs plugin for mkdocs
https://mkdocs-mermaid2.readthedocs.io
MIT License
203 stars 25 forks source link

ZenUML: Using "Custom loader" leads to endless loops #105

Open PlasmaHH opened 2 months ago

PlasmaHH commented 2 months ago

I was trying to use mermaids zenuml stuff and for that one has to add some extra javascript ( see bottom of https://mermaid.js.org/syntax/zenuml.html ) ... upon adding some in the extra_javascript this plugin seems to detect it and when building via mkdocs it spits out "MERMAID2 - Custom loader activated" in an endless stream and doesn't stop...

PS: mermaid is at version 10.9.0 PPS: maybe this could be solved by integrating all the optional extra features of mermaid as parameters to this plugin so it can import the modules themselves?

github-actions[bot] commented 2 months ago

Thank you for your contribution! This is very appreciated.

fralau commented 1 month ago

Thank you.

We would need more details, especially the name of the additional library?

Ideally, it would be good to have a minimal example to replicate that error.

PlasmaHH commented 1 month ago

I am not quite sure what you mean by "additional library" ?

fralau commented 1 month ago

Zenuml?

PlasmaHH commented 1 month ago

According to the mermaid documentation https://mermaid.js.org/syntax/zenuml.html#integrating-with-your-library-website it is part of mermaid and the url used there certainly looks like it too: 'https://cdn.jsdelivr.net/npm/@mermaid-js/mermaid-zenuml@0.1.0/dist/mermaid-zenuml.esm.min.mjs';

fralau commented 1 month ago

I never tried ZenUML 🤔 .

This matter would require a follow-up.