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 Emojis #1

Closed BoxedBrain closed 1 year ago

BoxedBrain commented 1 year ago

Hi,

first, thanks for your plugin! 👍

When using mkdocs-material with the emoji feature, for example by typing:

Hi :man_raising_hand:

It is also picked up by the lightbox and shown inside the loop, which is quite destroying the user experience. Is there a way to exclude them?

blueswen commented 1 year ago

@BoxedBrain Thanks for reporting! Didn't notice the emoji issue before.

I add a class filter (including three index from PyMdown Extensions) to skip the glightbox wrapping in version 0.1.7. If the new version solves your problem, you can close this issue.

BoxedBrain commented 1 year ago

@blueswen Thanks for your fast fix, it solved the issue! ❤️