### Bug description

Adding a comment before the first slide adds an empty slide at the beginning. 

This code correctly creates a single slide:
```rmd
---
format: revealjs
---

# Getting up

- Turn off alarm
- Get out of bed
```

This code generates an empty slide before the slide with content:
```rmd
---
format: revealjs
---

<!-- comment for myself -->

# Getting up

- Turn off alarm
- Get out of bed
```

I use `quarto-cli` 1.2.134 and RStudio 2022.07.1+554 on Windows 10.

Session info:
```r
> sessioninfo::session_info()
─ Session info ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 setting  value
 version  R version 4.2.1 (2022-06-23 ucrt)
 os       Windows 10 x64 (build 19044)
 system   x86_64, mingw32
 ui       RStudio
 language (EN)
 collate  English_Europe.utf8
 ctype    English_Europe.utf8
 tz       Europe/Paris
 date     2022-09-20
 rstudio  2022.07.1+554 Spotted Wakerobin (desktop)
 pandoc   2.18 @ C:/Program Files/RStudio/bin/quarto/bin/tools/ (via rmarkdown)

─ Packages ──────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
 package       * version date (UTC) lib source
 cli             3.4.0   2022-09-08 [1] CRAN (R 4.2.1)
 digest          0.6.29  2021-12-01 [1] CRAN (R 4.2.0)
 evaluate        0.16    2022-08-09 [1] CRAN (R 4.2.1)
 fansi           1.0.3   2022-03-24 [1] CRAN (R 4.2.0)
 fastmap         1.1.0   2021-01-25 [1] CRAN (R 4.2.0)
 fs              1.5.2   2021-12-08 [1] CRAN (R 4.2.0)
 glue            1.6.2   2022-02-24 [1] CRAN (R 4.2.0)
 htmltools       0.5.3   2022-07-18 [1] CRAN (R 4.2.1)
 httr            1.4.4   2022-08-17 [1] CRAN (R 4.2.1)
 jsonlite        1.8.0   2022-02-22 [1] CRAN (R 4.2.0)
 knitr           1.40    2022-08-24 [1] CRAN (R 4.2.1)
 lifecycle       1.0.2   2022-09-09 [1] CRAN (R 4.2.1)
 magrittr        2.0.3   2022-03-30 [1] CRAN (R 4.2.0)
 pillar          1.8.1   2022-08-19 [1] CRAN (R 4.2.1)
 pkgconfig       2.0.3   2019-09-22 [1] CRAN (R 4.2.0)
 purrr           0.3.4   2020-04-17 [1] CRAN (R 4.2.0)
 R.cache         0.16.0  2022-07-21 [1] CRAN (R 4.2.1)
 R.methodsS3     1.8.2   2022-06-13 [1] CRAN (R 4.2.0)
 R.oo            1.25.0  2022-06-12 [1] CRAN (R 4.2.0)
 R.utils         2.12.0  2022-06-28 [1] CRAN (R 4.2.1)
 R6              2.5.1   2021-08-19 [1] CRAN (R 4.2.0)
 rappdirs        0.3.3   2021-01-31 [1] CRAN (R 4.2.0)
 rlang           1.0.5   2022-08-31 [1] CRAN (R 4.2.1)
 rmarkdown       2.16    2022-08-24 [1] CRAN (R 4.2.1)
 roxygen2        7.2.1   2022-07-18 [1] CRAN (R 4.2.1)
 rstudioapi      0.14    2022-08-22 [1] CRAN (R 4.2.1)
 rvest           1.0.3   2022-08-19 [1] CRAN (R 4.2.1)
 sessioninfo     1.2.2   2021-12-06 [1] CRAN (R 4.2.0)
 shrtcts         0.1.2   2022-04-29 [1] Github (gadenbuie/shrtcts@12ef67f)
 stringi         1.7.8   2022-07-11 [1] CRAN (R 4.2.1)
 stringr         1.4.1   2022-08-20 [1] CRAN (R 4.2.1)
 styler          1.7.0   2022-03-13 [1] CRAN (R 4.2.0)
 tibble          3.1.8   2022-07-22 [1] CRAN (R 4.2.1)
 utf8            1.2.2   2021-07-24 [1] CRAN (R 4.2.0)
 vctrs           0.4.1   2022-04-13 [1] CRAN (R 4.2.0)
 xaringanExtra   0.7.0   2022-07-16 [1] CRAN (R 4.2.1)
 xfun            0.33    2022-09-12 [1] CRAN (R 4.2.1)
 xml2            1.3.3   2021-11-30 [1] CRAN (R 4.2.0)
 yaml            2.3.5   2022-02-21 [1] CRAN (R 4.2.0)

 [1] C:/Users/etienne/AppData/Local/R/win-library/4.2
 [2] C:/Users/etienne/AppData/Local/Programs/R/R-4.2.1/library

─────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
```


### 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.
2022-09-20T11:47:55Z
etiennebacher
bug wontfix
closed
Revealjs: adding a comment before the first slide adds an empty slide
https://github.com/quarto-dev/quarto-cli/issues/2514