fralau / mkdocs-mermaid2-plugin

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

Rendering Mermaid diagram with Pan and Zoom ability on mkdocs pages #93

Open premthebuilder opened 9 months ago

premthebuilder commented 9 months ago

Hi, I just started using mermaid for our documentation using mkdocs recently and I am loving it. But one of issues that keeps me from using it to document large workflow diagrams that don't fit in a single page view is the lack of ability to pan and zoom, like the one you have with mermaid live editor

I searched through the issues/discussions and don't see any way to do this, so raising this issue. Hopefully we get enough support for this to make it a priority. Meanwhile I will take a shot at implementing it myself and submit a PR. But please let me know if there a way to get this already. Thanks!

github-actions[bot] commented 9 months ago

Thank you for your contribution! This is very appreciated.

fralau commented 7 months ago

Thanks for your issue (and for your patience).

I am aware of that problem. The reason why it is not solved yet, is that it is a question that involves several components of the MkDocs ecosystem.

Mkdocs-Mermaid2 is essentially Python, though there are Javascript and css parts in it. Those were generally contributed by others.

I am putting in copy the maintainers of Mermaid's live editor (@sidharthv96 and @knsv). Who knows, they might have some ideas, or suggest someone who could help?

fralau commented 7 months ago

Just in case, I am also putting the maintainer of the Material theme in the loop (@squidfunk) as the subject might interest him.

I am not sure that Mkdocs-Mermaid2 is the exact place where the problem should be solved, but perhaps a multilateral discussion could lead us somewhere?

fralau commented 7 months ago

Actually this is a subject discussed at the level of the mermaid library (https://github.com/mermaid-js/mermaid/issues/1860)