quarto-ext / lightbox

Create lightbox treatments for images in your HTML documents.
https://quarto-ext.github.io/lightbox/
MIT License
76 stars 4 forks source link

Lightbox does not work in R DT #17

Open skchronicles opened 1 year ago

skchronicles commented 1 year ago

Hello there,

Thank you for creating and maintaining this awesome tool! I just tried testing out this plugin, and it works well when the image is not in a DT. You can inject HTML into a DT by setting the escape option to TRUE; however, this option only appears to work with HTML. You cannot pass it markdown. I am not sure if that is the issue or if it is on the DT side, but I cannot embed a lightbox within a DT. As I mentioned before, it works beautifully outside of a DT.

I was able to create a quick workaround by just linking to a local file; however, this is not an ideal long-term solution. Here is a repo you can clone if you want to take a closer look. I would like to embed images as base64, and I really like the idea of a lightbox, modal, or basic image viewer for looking at figures. For testing purposes, you can edit the input file being used to create the DT in data/tiny.tsv.

Thank you again for your time and help! I appreciate it.

Best Regards, @skchronicles