hub-client: `.lightbox` images don't open full size in the preview

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

Maintainers usually reply within 1 day

Nobody has claimed this yet.

Assessment

Difficulty
3/5
Estimated time
1-2 days
Newbie friendliness
56/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Active
Tech stack
rust
Domain
frontend

Research direction

Start by tracing how the hub-client preview renders Markdown images and handles clicks, then compare that behavior with the Quarto 2 Figures guide’s .lightbox support for HTML output. Implementing preview support should let a .lightbox image open full size when clicked; if preview support is not planned, update the guide to state that limitation.

Written by the indexing model from the issue text.

Description

Summary

Images with .lightbox don't open full size when clicked in the preview.

Steps to reproduce
  1. Add an image with the lightbox class:

    ![Prototype screenshot](prototype.png){.lightbox}
    
  2. Click the image in the preview.

Expected: The image opens full size, as in Quarto HTML output.
Actual: Nothing happens.

Request

Support .lightbox in the preview. If that's not planned, it would help if the Quarto 2 Figures guide (which documents .lightbox for HTML output) noted that the preview doesn't support it.

Impact

My design docs are full of UI screenshots, and at the preview's column width the details are too small to read. Lightbox is the standard fix, so without it reviewers can't see what they're commenting on.

Dominant language
Rust
Stars
302
Forks
22
Avg merge
5h 2m
Merged PRs (30d)
213

Getting set up

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-dev/q2

All issues in quarto-dev/q2

Similar issues

More Rust issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.