quarto-dev / quarto-cli

Open-source scientific and technical publishing system built on Pandoc.
https://quarto.org
Other
3.57k stars 294 forks source link

Incorrect resolution of references in unnumbered chapters #9439

Open cscheid opened 2 months ago

cscheid commented 2 months ago

Repro in https://github.com/quarto-dev/quarto-cli/discussions/3583#discussioncomment-9179378

cscheid commented 2 months ago

The problem is in this call:

https://github.com/quarto-dev/quarto-cli/blob/main/src/project/types/book/book-crossrefs.ts#L301-L303

It doesn't distinguish between references that exist in a file that is supposed to be itself .unnumbered (like index.qmd), and references to a file that's supposed to be unnumbered.

cscheid commented 2 months ago

This is unsupported behavior rather than a bug:

https://quarto.org/docs/books/book-structure.html#chapter-numbers