Add GitHub-style pan and zoom controls to Mermaid diagrams in HTML output #15003
ar-puuk
started this conversation in
Feature Requests
Replies: 0 comments
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.
Description
What I want to achieve
I am requesting interactive pan and zoom controls for Mermaid diagrams rendered in Quarto HTML outputs.
Currently, large Mermaid diagrams in Quarto HTML often overflow the page or scale down until the text is unreadable. Manual workarounds like setting fig-width aren't fully responsive for web readers, and the existing lightbox extension doesn't natively support these generated inline SVGs.
Proposed Solution
It would be amazing to eventually see a pan/zoom UI overlay for Mermaid diagrams, similar to how GitHub natively renders them. As shown in the reference file image_ca591f.png, GitHub uses dedicated control panels floating over the diagram container.
If possible, it would be incredibly helpful if Quarto could offer similar capabilities, such as:
Why it is important
Thank you to the Quarto team for the amazing tool, and I appreciate your consideration of this enhancement!
All reactions