### Bug description

Using

~~~md
```{r, echo = FALSE}
# INITIALIZE CODE
hello <- 42
```

# Summary

In summary, this book has no content whatsoever.
~~~

in a Quarto Book chapter results in `INITIALIZE CODE` becoming the chapter title used **in the table of content**, although the `Summary` is still the title on the page.  See below screenshot.

![image](https://user-images.githubusercontent.com/1616850/202799544-e20abe50-4306-4e8e-8cf1-b611b8a97dac.png)


# Session info

Ubuntu 20.04 with:

```sh
$ quarto --version
1.3.11
```


### 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.
- [X] 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
2022-11-18T20:50:05Z
HenrikBengtsson
bug
v1.4
open
Books: Table of Content picks up code-block comments as chapter titles
https://github.com/quarto-dev/quarto-cli/issues/3390