Skip to content

Add dark-mode images for figures and markdown-basics docs - #2120

Merged
cderv merged 1 commit into
mainfrom
dark-mode-figures
Jul 24, 2026
Merged

Add dark-mode images for figures and markdown-basics docs#2120
cderv merged 1 commit into
mainfrom
dark-mode-figures

Conversation

@cderv

@cderv cderv commented Jul 24, 2026

Copy link
Copy Markdown
Member

Figures and Markdown Basics ship light-only elephant screenshots, which look jarring against a dark background when readers toggle the site's dark theme.

Documents can now show a dark-mode variant for each image, using the existing .light-content/.dark-content convention already used elsewhere on the site.

Supersedes #1641, which added these dark assets back in April 2025 but went stale. That PR vendored a pandoc-ext/list-table Lua filter to mix code blocks and images in table cells; this rewrites that markup using the list-table syntax Quarto 1.9 shipped natively, so no extension is needed.

Also wires up layout-attrib-negative-dark.png, an asset #1641 added but never referenced.

@github-actions
github-actions Bot temporarily deployed to pull request July 24, 2026 15:09 Inactive
@github-actions

Copy link
Copy Markdown
Contributor

📝 Preview Deployment

🔍 Full site preview: https://deploy-preview-2120.quarto.org

🔄 Modified Documents

@cderv

cderv commented Jul 24, 2026

Copy link
Copy Markdown
Member Author

Preview checked on deploy build (https://deploy-preview-2120.quarto.org) — figures, markdown-basics, tables, cross-references pages. Verified light/dark image swap via computed style, and confirmed no broken image links (all 200s). Closed #1641 as superseded.

Figures and Markdown Basics currently ship light-only elephant
screenshots, which look jarring against a dark background for readers
using the site's dark theme. Revives #1641, dropping its vendored
pandoc-ext/list-table Lua filter in favor of the native list-table
syntax Quarto 1.9 shipped after that PR went stale.

Also wires up layout-attrib-negative-dark.png, which the original PR
added but never referenced.
@cderv
cderv force-pushed the dark-mode-figures branch from a87128e to 9e5c802 Compare July 24, 2026 20:09
@github-actions
github-actions Bot temporarily deployed to pull request July 24, 2026 20:16 Inactive
@github-actions

Copy link
Copy Markdown
Contributor

📝 Preview Deployment

🔍 Full site preview: https://deploy-preview-2120.quarto.org

🔄 Modified Documents

@cderv
cderv merged commit c736ea0 into main Jul 24, 2026
4 checks passed
@cderv
cderv deleted the dark-mode-figures branch July 24, 2026 21:18
@github-actions

Copy link
Copy Markdown
Contributor

Successfully created backport PR for prerelease:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant