Closed Fazarel closed 3 years ago
Great idea! To be honest, I wasn't even aware that markdown supports title attributes.
Your code looks mighty fine to me. I basically will use it for the update. :)
Implemented with dea404972c19e6eae9ff4dc1dfa28a9f3c0d0267 / v1.1.0
Please check it out if that's what you wished for, @Fazarel . 👍
It works for my pages, without any additional changes. Thank you!
Currently this plugin only uses the alt attribute as image title and slide description:
![image title and description](image.jpg)
GLightbox allows to display more information in the description of the slides and to format the text with html: https://biati-digital.github.io/glightbox/#examples https://github.com/biati-digital/glightbox/blob/master/README.md
I am not a developer but here are the modifications I made to the plugin to complete and improve the description of the images using alt and title attributes:
In GalleryPlusPlusShortcode.php, I added these lines:
In gallery-plusplus.html.twig, I did the following amendment. The title attribute, if it exists, replaces the alt attribute in the description. The text can be formatted with html :
How to use it in a page:
This possibility to expand the description of images seems to me essential for this plugin. It can certainly be better coded.