Skip to content

[Sync to prerelease] Add dark-mode images for figures and markdown-basics docs - #2130

Merged
cderv merged 1 commit into
prereleasefrom
sync-2120-to-prerelease
Jul 24, 2026
Merged

[Sync to prerelease] Add dark-mode images for figures and markdown-basics docs#2130
cderv merged 1 commit into
prereleasefrom
sync-2120-to-prerelease

Conversation

@github-actions

Copy link
Copy Markdown
Contributor

Description

Sync of #2120 to prerelease.

Original PR

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

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.

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.

(cherry picked from commit c736ea0)
@cderv

cderv commented Jul 24, 2026

Copy link
Copy Markdown
Member

/deploy-preview

@cderv
cderv merged commit d1a0a65 into prerelease Jul 24, 2026
@cderv
cderv deleted the sync-2120-to-prerelease branch July 24, 2026 21:21
@github-actions

Copy link
Copy Markdown
Contributor Author

📝 Preview Deployment

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

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