Skip to content

Commit 3bffdef

Browse files
committed
tests: drop duplicate key from delimited YAML bibliography fixture
Pandoc 3.13 parses YAML with yamlet, and a duplicate key in a mapping is now an error instead of a warning, so this fixture failed the whole render. The duplicate only showed Quarto's reader keeping the last value as Pandoc did; the fixture's purpose, a ---delimited YAML bibliography still producing Scholar citation tags (#15128), does not need it. Pandoc has no option to restore the old behavior, so the changelog tells users how to fix the error.
1 parent 27c39c1 commit 3bffdef

3 files changed

Lines changed: 2 additions & 2 deletions

File tree

‎news/changelog-1.12.md‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ All changes included in 1.12:
1010
- Update `pandoc` to 3.13
1111
- ([jgm/pandoc#11540](https://github.com/jgm/pandoc/issues/11540)): Horizontal rules (`---`) in Typst output are now full-width, following Pandoc 3.13's use of Typst 0.15's native `divider` element, instead of the previous centered half-width line. Restyle them with `#show divider: set line(stroke: 2pt)` in a raw Typst block or a custom template. A Typst binary set through `QUARTO_TYPST` must now be version 0.15 or later.
1212
- ([jgm/pandoc#11831](https://github.com/jgm/pandoc/pull/11831)): HTML documents using `theme: pandoc` pick up Pandoc 3.13's style updates. Links now inherit the surrounding text color unless `linkcolor` is set, horizontal rules and table borders follow the text color, and printed output drops backgrounds and the fixed 12pt font size, rendering at the 11pt print size used by other Quarto HTML themes. Pandoc 3.13's automatic dark mode is not enabled for `theme: pandoc`.
13+
- ([jgm/pandoc 3.13](https://github.com/jgm/pandoc/releases/tag/3.13)): A YAML bibliography file with a duplicated key, such as two `title` fields in one reference, now stops the render with an error giving the file, line and column. Before, the last value was kept silently. Remove the duplicate key to render again.
1314

1415
## Accessibility
1516

‎tests/docs/smoke-all/2026/10/14/scholar-references/delimited-yaml.qmd‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,6 @@ _quarto:
1010
- ['meta[name="citation_reference"][content*="citation_title=Cited reference;"]']
1111
---
1212

13-
The bibliography is a YAML file wrapped in `---` delimiters, with a duplicated `title` key. Pandoc warns and keeps the last value, so the Scholar reference tags do too.
13+
The bibliography is a YAML file wrapped in `---` delimiters. It still produces the Scholar reference tags.
1414

1515
This article cites one work [@cited].

‎tests/docs/smoke-all/2026/10/14/scholar-references/references-delimited.yaml‎

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,6 @@
22
references:
33
- id: cited
44
type: article-journal
5-
title: Superseded title
65
title: Cited reference
76
author:
87
- family: Smith

0 commit comments

Comments
 (0)