You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit d0bc2d9
Browse filesBrowse the repository at this point in the historyBrowse files
Fix Google Scholar references for a bare YAML bibliography (#15128)
A YAML bibliography not wrapped in --- delimiters produced no
citation_reference tags with google-scholar enabled, so its references
were missing from the Scholar output. Pandoc has no reader for YAML
bibliographies, so the file was read as markdown, which only finds
references in a delimited metadata block. Read .yaml and .yml files the
way --bibliography does, from the first YAML document:
- A references: map goes through --metadata-file, so Pandoc's YAML
reader handles it unchanged.
- A top-level list is wrapped as {references: ...} on stdin, since
--metadata-file needs a map.
- The shape check accepts any YAML tag and keeps the last value of a
duplicate key, as Pandoc does, so delimited files that worked before
still do.
See #15125 for the CSL JSON case of the same conversion.
Copy file name to clipboardExpand all lines: news/changelog-1.11.md
+1Lines changed: 1 addition & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -67,6 +67,7 @@ All changes included in 1.11:
67
67
- ([#15115](https://github.com/quarto-dev/quarto-cli/pull/15115)): Fix Google Scholar writing two `citation_reference` tags for a reference defined in two bibliography files. The tag now describes the entry Pandoc renders.
68
68
- ([#15118](https://github.com/quarto-dev/quarto-cli/pull/15118)): Fix Google Scholar metadata missing the first and last page of bibliography entries, and giving wrong pages for a citation `page` written with an en-dash or as a page list.
69
69
- ([#15125](https://github.com/quarto-dev/quarto-cli/pull/15125)): Fix Google Scholar metadata failing the render with a CSL JSON (`.json`) bibliography.
70
+
- ([#15128](https://github.com/quarto-dev/quarto-cli/pull/15128)): Fix Google Scholar metadata missing references with a YAML bibliography not wrapped in `---` delimiters.
The bibliography is a YAML file holding a top-level list of references, with no `references:` key, which pandoc accepts for `--bibliography`. The fields still go through pandoc's YAML reader: the markdown title is parsed and the unquoted volume keeps its text.
The bibliography is a YAML file with a `references:` list and no `---` delimiters, which pandoc accepts for `--bibliography`. Pandoc has no input format that reads such a file, so the Scholar reference tags need it handled explicitly.
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.
The bibliography is a delimited YAML file whose values carry explicit tags, standard (`!!int`) and custom (`!custom`). Pandoc accepts any tag and keeps the value's text, so the Scholar reference tags do too.
0 commit comments