blueswen / mkdocs-glightbox

A MkDocs plugin supports image lightbox (zoom effect) with GLightbox.
https://blueswen.github.io/mkdocs-glightbox/
MIT License
115 stars 14 forks source link

add id to appended script tag #38

Closed unverbuggt closed 2 months ago

unverbuggt commented 2 months ago

We've had an issue where glightbox didn't work after decryption at first (if the decryption key was available on the second run it worked).

The encryptcontent plugin fixes some other mkdocs plugins by re-calling their initialization after successful decryption. In order to be able to do that with glightbox, we need to have a script id.

blueswen commented 2 months ago

LGTM! Thanks for helping.