### Bug description

Here is a (pandoc) markdown test file `test.qmd` 
```
# Test

$$\begin{equation}
1+2
\end{equation}$$
Some text
$$\begin{equation}
3+4
\end{equation}$$
more text
$$\begin{equation}
5+6
\end{equation}$$
even more text
$$\begin{equation}
7+8
\end{equation}$$
the end.
```
When rendering as html with pandoc 

`pandoc -t html5 --mathjax -s -o test-pandoc.html test.qmd`

it renders correctly. 
![Bildschirmfoto 2022-06-19 um 23 04 07](https://user-images.githubusercontent.com/3169297/174500284-cf7061f4-3fce-4284-8699-65e68d3946ee.png)
However when rendering the file to html with quarto 

` quarto render test.qmd`

`$$` are showing up in the text of the html file
![Bildschirmfoto 2022-06-19 um 23 04 23](https://user-images.githubusercontent.com/3169297/174500296-552f1ebd-7f6f-4857-b058-181f31019c69.png)

This happens with quarto 0.9.592 and pandoc 2.18 on Mac OS X 10.15.7 . 







### 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?
- [X] 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?
cscheid
2022-06-19T21:14:00Z
asmaier
bug
Future
closed
Display math $$ delimiter showing up in rendered HTML output
https://github.com/quarto-dev/quarto-cli/issues/1181