mikitex70 / plantuml-markdown

PlantUML plugin for Python-Markdown
BSD 2-Clause "Simplified" License
198 stars 55 forks source link

Add link to generated image to open it in a new tab/window #95

Closed mschoettle closed 7 months ago

mschoettle commented 7 months ago

Sometimes the generated images of diagrams can look small depending on the available space where they are embedded.

Would it be possible to include an option that allows to click on the image to open it separately (same or new tab/window)?

mschoettle commented 7 months ago

As I wrote this I thought about checking whether mkdocs-material that we use has an option for this. And it does: https://squidfunk.github.io/mkdocs-material/reference/images/?h=image#lightbox (via the mkdocs plugin glightbox: https://github.com/blueswen/mkdocs-glightbox).

Works like a charm, so closing this again. Maybe it will be helpful information for someone else.