Zooming of Mermaid content? #7199
Replies: 5 comments 13 replies
|
The small example is this: |
4 replies
|
Hi all This bothered me for too long so I made my own plugin. You can check it out here. Let me know if anything doesn't work. Note: This plugin is still in beta! Hope this helps! |
1 reply
|
What about clickable mermaid elements? Have not been able to get it to work. I recon it's not integrated? |
7 replies
|
As suggested here this plugin worked great for me: https://github.com/PLAYG0N/mkdocs-panzoom |
0 replies
|
https://lijma.github.io/mkdocs-mermaid-zooming/demo this plugin may helps |
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment


Uh oh!
There was an error while loading. Please reload this page.
Folks,
I have some very large mermaid diagrams, that I'd like to be able to zoom & preferably drag 'n move around the file.
Now, I've seen that github will natively add zoom & pan'n scan features to a mermaid diagram... But I haven't seen anything that'll work with mkdocs / mkdocs Material?
I did find this very small javascript at - https://jsfiddle.net/zu_min_com/2agy5ehm/26/, which uses the D3 javascript library.
I've attempted to make it work under mkdocs Material, and failed.
This is the reduced example where it works, stand-alone.
small_raw_example.txt
But If I try to add it to mkdocs, it doesn't work. I believe it's because the native mkdocs mermaid isn't being seen?
I tried loading the cdn version of mermaid as well, but that conflicted with the built-in mermaid. (It was worth a try!)
Anyone have any suggestions? Is there a way to make this work? I don't need this for every diagram....
All reactions