Lightbox Quarto feature could work for raw HTML image too #14578
Replies: 2 comments 11 replies
-
|
See the documentation: https://quarto.org/docs/output-formats/html-lightbox-figures.html#applying-lightbox-to-specific-images |
Beta Was this translation helpful? Give feedback.
-
|
Maybe everything as been said, but I want to add a bit more thoughts. @arnaudgallou if you want to control lightbox directly through https://github.com/biati-digital/glightbox without using the Quarto feature, then you can add yourself the required dependencies using HTML includes
We could look into that, but I am not sure to see the value comparing to you adding the dependencies you need in your document and project in this case. Another option is for use to somehow process HTML Raw block and look for images with class lightbox. 🤔 Anyhow this won't change the processing we do on https://github.com/quarto-dev/quarto-cli/blob/762b65650ace20de02948dde3e449c10fd8ab1ac/src/resources/filters/layout/lightbox.lua
This makes considering raw HTML block handling tricky. And why we don't support it. Currently
Thanks for the discussion and your suggestion ! I am moving this to feature request. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Description
For some reasons,
lightbox: trueonly seems to add the required scripts (located insite_libs/quarto-contrib/glightbox/) when Quarto detects the markdown image syntax![](). I would prefer to use<img>for better control and to keep the EJS file cleaner (I find mixing markdown syntax and EJS messy and hard to read).Is this possible?
Beta Was this translation helpful? Give feedback.
All reactions