getgrav / grav-plugin-featherlight

Grav Featherlight Plugin
https://getgrav.org
MIT License
30 stars 9 forks source link

Classes ignored for lightbox images #21

Open tmoravec opened 6 years ago

tmoravec commented 6 years ago

Grav allows adding image HTML attributes like classes or an id: https://learn.getgrav.org/content/image-linking#image-attributes

When I enable lightbox on an image, this functionality breaks. For example this markup renders the image with my classes: ![Alt text](image.png?classes=deskw-50,border,rounded,border-success,p-3)

While this markup enables the lightbox, but my classes are not present: ![Alt text](image.png?lightbox=500&classes=deskw-50,border,rounded,border-success,p-3)

I'm using the latest grav-plugin-featherlight (v1.5.0).