### Bug description

Create a book project
````
quarto create-project test-quarto-book --type book
````

Add classes une header like this in `index.qmd`

````
# Preface {.unnumbered .unlisted}
````

Render to PDF -> the classes are not correctly parsed by Pandoc and the curly braces part is taken as is. 

![image](https://user-images.githubusercontent.com/6791940/177580771-58095636-4a07-4a03-b8b7-5ebdb25b03cb.png)

in tex 
````tex
\chapter*{Preface \{.unnumbered,.unlisted\}}\
````

I am still trying to figure out where this is can happen in our filters.

It only happens in book project. I can reproduce within a single document

This is using last dev version on Windows 11


### Checklist

- [X] [formatted your issue](https://yihui.org/issue/#please-format-your-issue-correctly) so it is easier for us to read?
- [X] included a minimal, self-contained, and reproducible example?
- [X] documented the quarto version you're running, by providing the output produced by `quarto check` in a terminal in your issue?
- [ ] documented the RStudio IDE version you're running (if applicable), by providing the value displayed in the "About RStudio" main menu dialog?
- [X] documented which operating system you're running? If on Linux, please provide the specific distribution as well.
- [X] upgraded to the latest version, including your versions of R, the RStudio IDE, and relevant R packages?
cderv
2022-07-06T14:58:25Z
cderv
bug
closed
Adding more that one class on header in book is not parsed correctly
https://github.com/quarto-dev/quarto-cli/issues/1297