Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions news/changelog-1.9.md
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ All changes included in 1.9:
- ([#11929](https://github.com/quarto-dev/quarto-cli/issues/11929)): Import all `brand.typography.fonts` in CSS, whether or not fonts are referenced by typography elements.
- ([#13413](https://github.com/quarto-dev/quarto-cli/issues/13413)): Fix uncentered play button in `video` shortcodes from cross-reference divs. (author: @bruvellu)
- ([#13508](https://github.com/quarto-dev/quarto-cli/issues/13508)): Add `aria-label` support to `video` shortcode for improved accessibility.
- ([#13900](https://github.com/quarto-dev/quarto-cli/issues/13900)): Warn when `renderings` cell option contains duplicate names. Previously, duplicate names like `[dark, light, dark, light]` would silently use only the last output for each name.

### `typst`

Expand Down
5 changes: 5 additions & 0 deletions src/resources/filters/quarto-post/cell-renderings.lua
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,12 @@ function choose_cell_renderings()
end

local outputs = {}
local seen = {}
for i, r in ipairs(renderings) do
if seen[r] then
quarto.log.warning("duplicate rendering name '" .. r .. "' in renderings; only the last cell output with each name will be used")
end
seen[r] = true
outputs[r] = cods[i]
end
local lightDiv = outputs['light']
Expand Down
21 changes: 21 additions & 0 deletions tests/docs/smoke-all/2026/01/16/13900.qmd
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
---
title: "Test duplicate rendering names warning"
format: html
execute:
echo: false
_quarto:
tests:
html:
printsMessage:
level: INFO
regex: "duplicate rendering name 'dark' in renderings"
---

```{r}
#| renderings: [dark, light, dark, light]
plot(1, main = "Plot 1 (dark)")
plot(2, main = "Plot 2 (light)")
plot(3, main = "Plot 3 (dark)")
plot(4, main = "Plot 4 (light)")
```
Loading