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

Ignore neoteroi-mkdocs elements #28

Closed carried-away closed 6 months ago

carried-away commented 6 months ago

Hello,

I'm using neoteroi cards and the glightbox plugin conflicts with the imgs.

Maybe it's currently possible to ignore these imgs but I am not having much success. I think it's because the neoteroi plugin does not allow imgs to have classes bound to them via the input object mechanism

I tried enabling

- glightbox:
      skip_classes: 
        - skip

and applying the skip class to the actual card element to be ignored by glightbox, but glightbox only adheres to img, as it should.

I guess what I'm asking is, is it currently possible to ignore classes of things other than imgs? Right now, I can only get things to work by disabling glightbox on the page completely, which i really don't want to do as it's an awesome plugin.

blueswen commented 6 months ago

Hi @carried-away,

I added a new feature in v0.3.6 to enable lightbox of images separately by adding on-glb class and keeping others not affected, which may fit your requirements. You can check the demo and details on documents.

carried-away commented 6 months ago

Perfect!!! Thank you, Happy New Year!