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
Fix false citeproc warning from @ in book metadata URLs (#14105)
When a book project has URLs containing `@` in navbar config (e.g.,
`href: https://mastodon.online/@user`) and a bibliography, Pandoc emits
false `[WARNING] Citeproc: citation not found` warnings because it
parses YAML metadata strings as Markdown, interpreting `@user` as a
citation reference.
Book metadata can't be deleted before passing to Pandoc (unlike website
metadata) because `{{< meta book.* >}}` shortcodes depend on it.
Escape `@` to `@` in URL strings within `book` metadata before
writing the Pandoc metadata file. The escaping is scoped to URL strings
only (via `isExternalPath()`), so non-URL metadata strings like
intentional citations in description fields are left untouched. Pandoc
resolves the HTML entity back to `@` in the AST, so templates and
shortcodes see the original character.
Fixes#12136
Copy file name to clipboardExpand all lines: news/changelog-1.9.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
@@ -131,6 +131,7 @@ All changes included in 1.9:
131
131
132
132
### `book`
133
133
134
+
- ([#12136](https://github.com/quarto-dev/quarto-cli/issues/12136)): Fix false `citeproc: citation not found` warnings when book metadata URLs contain `@` (e.g., Mastodon links). The `@` in URL strings is now escaped before passing to Pandoc, preventing misinterpretation as citation references.
134
135
- ([#13769](https://github.com/quarto-dev/quarto-cli/issues/13769)): Apply `repo-link-target` and `repo-link-rel` options to tools in book sidebar for consistent link attribute handling with website projects. (author: @mcanouil)
0 commit comments