### Bug description

In a book project, using a label on a title, eg

```markdown
# title {#sec-stuff}
```

will normally result in a reference to "Chapter X" (where X is the number) when you do something like `@sec-stuff`. This worked well in 1.2.

However, somewhere in 1.3, it stopped working properly when a book contains appendices. All references to chapters in this way wind up as "Appendix X" 

For example:

![image](https://user-images.githubusercontent.com/7606540/215382782-30585a27-3a56-4d00-9814-712df1cac667.png)

The cross references above should be to chapters 1 and 2.

To make it easy to reproduce, please see the latest commits on my quarto-test repo at: https://github.com/fuhrmanator/quarto-test

I'm using Windows 10, and Quarto's version is 1.3.129

### Checklist

- [X] Please include a minimal, fully reproducible example in a single .qmd file? Please provide the whole file rather than the snippet you believe is causing the issue.
- [X] Please [format your issue](https://quarto.org/bug-reports.html#formatting-make-githubs-markdown-work-for-us) so it is easier for us to read the bug report.
- [ ] Please document the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] Please document the operating system you're running. If on Linux, please provide the specific distribution.
dragonstyle
2023-01-30T03:45:28Z
fuhrmanator
bug crossref
v1.3
closed
Cross references to labels on chapters show up as "Appendix"  rather than "Chapter"  when book contains appendices
https://github.com/quarto-dev/quarto-cli/issues/4145