Lightbox does not work in R DT

Open
#17 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
4/5
Estimated time
3-5 days
Newbie friendliness
25/100
Issue type
Bug
Clarity
Needs clarification
Activity status
Stale
Tech stack
html, markdown, r
Domain
frontend, web-dev

Research direction

Clone the linked reproduction repository and edit data/tiny.tsv to reproduce the lightbox behavior inside an R DT, comparing it with an image outside the table. Trace whether the limitation is in DT's HTML or markdown handling, and consider the issue done when embedded images in the table open in the lightbox or the responsible limitation is clearly documented.

Written by the indexing model from the issue text.

Description

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

Dominant language
Lua
Stars
83
Forks
5
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from quarto-ext/lightbox

All issues in quarto-ext/lightbox

Similar issues

More Lua issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.