Repository navigation
Commit e24bcbd
authored
Fix original.code attribute leaking into every chunk's .cell div (#14928)
knitr's dev branch (yihui/knitr#2521, merged 2026-09-21) now stashes
params$original.code (the raw fenced chunk source) into every chunk's
quarto_options attribute bundle, alongside original.params.src,
chunk.echo, and yaml.code. Those three were already allowlisted in
hooks.R's other_opts; original.code was not, so hooks.R's generic
unknown-attribute forwarder picks it up and writes it as a literal
Pandoc div attribute on every chunk's .cell div, not just echo:fenced
ones.
test-smokes.yml installs dev knitr from r-universe on every CI run, so
this started failing docs/smoke-all/knitr/execution-env-var.qmd the
same day #2521 merged: the leaked original.code happened to contain
the literal string UNDEFINED, tripping that test's regex assertion
even though the env vars under test were resolving correctly.
Add original.code to other_opts next to original.params.src so it is
consumed rather than forwarded, matching the other three bundle
fields.1 parent 19a7da9 commit e24bcbd
1 file changed
Lines changed: 1 addition & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
363 | 363 | | |
364 | 364 | | |
365 | 365 | | |
| 366 | + | |
366 | 367 | | |
367 | 368 | | |
368 | 369 | | |
| |||
0 commit comments