by Jiří Václavovič
Fits wide Mermaid diagrams to the page width and shows them at full size in an overlay on click.
↓ 136 downloadsUpdated 1mo agoMIT
Mermaid Autozoom
An Obsidian plugin that keeps wide Mermaid diagrams readable.
- Fits to the page – a Mermaid diagram wider than the note shrinks to the page width. Smaller diagrams keep their natural size (they are never enlarged).
- Click to view at 100 % – click a diagram to open it at its natural size in an overlay over the current window.
- Large diagrams can be scrolled with the mouse wheel / trackpad.
- Ctrl/Cmd + wheel zooms in and out; on touch devices pinch with two fingers.
- Click / tap anywhere or press Esc to close.
Works in Reading view and Live Preview. In Live Preview, clicking the diagram opens the overlay instead of switching the block to source editing – use the code block's edit button (</>) to edit the diagram source.
Clicks with a modifier key (Cmd, Ctrl, Alt, Shift) are ignored, so they keep their default behaviour.
Compatibility
- Desktop and mobile.
Installation
From Community plugins
- Open Settings → Community plugins → Browse.
- Search for Mermaid Autozoom, select Install, then Enable.
Manually
- Download
main.js,manifest.jsonandstyles.cssfrom the latest release. - Copy them to
<your vault>/.obsidian/plugins/mermaid-autozoom/. - Reload Obsidian and enable Mermaid Autozoom in Settings → Community plugins.
License
For plugin developers
Search results and similarity scores are powered by semantic analysis of your plugin's README. If your plugin isn't appearing for searches you'd expect, try updating your README to clearly describe your plugin's purpose, features, and use cases.