### Bug description

Hi,
TOC is rendered invalid from Jupyter notebook, when raw contains HTML comment.

See:

Attaching the notebook:
(I added additional suffix *.txt, so it can be uploaded. Remove it, before testing)

[Lekcia 08 - Webove stranky a HTML.ipynb.txt](https://github.com/quarto-dev/quarto-cli/files/10696498/Lekcia.08.-.Webove.stranky.a.HTML.ipynb.txt)




2023-02-09T11:18:25Z
stefansimik
bug
closed
Bad TOC rendering - HTML comment
https://github.com/quarto-dev/quarto-cli/issues/4292