Bug description
The slide numbering gets messed up by h1 (i.e., #) sections when using print-pdf with RevealJS. If you create a MWE presentation using the code below, it will correctly number the slides 1 to 4 in the IDE and web browser. But when you go to http://localhost:6600/?print-pdf (or whatever your port is) or open the presentation in Chrome and hit e on the keyboard, each h1 section will increment the slide number by 2 instead of 1. It will also change back to the c format, even if you change it in YAML, and it will add an empty page at the end.
---
format:
revealjs:
slide-number: c/t
show-slide-number: all
---
# Section 1
## Slide
# Section 2
## Slide
Correct display in RStudio IDE: (i.e., 1 / 4, 2 / 4, 3 / 4, 4 / 4)

Incorrect numbering and format in PDF Output: (i.e., 2, 3, 5, 6, Blank)

See the PDF here generated by Chrome
mwe.pdf
Versions
RStudio 2022.12.0+353 "Elsbeth Geranium" Release (7d165dcfc1b6d300eb247738db2c7076234f6ef0, 2022-12-03) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36
Microsoft Windows version 22H2 (OS Build 22623.1095) (64-bit)
Google Chrome version 109.0.5414.75 (Official Build) (64-bit)
Quarto CLI 1.2.269
Checklist
Bug description
The slide numbering gets messed up by h1 (i.e.,
#) sections when usingprint-pdfwith RevealJS. If you create a MWE presentation using the code below, it will correctly number the slides 1 to 4 in the IDE and web browser. But when you go tohttp://localhost:6600/?print-pdf(or whatever your port is) or open the presentation in Chrome and hiteon the keyboard, each h1 section will increment the slide number by 2 instead of 1. It will also change back to thecformat, even if you change it in YAML, and it will add an empty page at the end.Correct display in RStudio IDE: (i.e.,
1 / 4,2 / 4,3 / 4,4 / 4)Incorrect numbering and format in PDF Output: (i.e.,
2,3,5,6, Blank)See the PDF here generated by Chrome
mwe.pdf
Versions
RStudio 2022.12.0+353 "Elsbeth Geranium" Release (7d165dcfc1b6d300eb247738db2c7076234f6ef0, 2022-12-03) for Windows
Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) RStudio/2022.12.0+353 Chrome/102.0.5005.167 Electron/19.1.3 Safari/537.36
Microsoft Windows version 22H2 (OS Build 22623.1095) (64-bit)
Google Chrome version 109.0.5414.75 (Official Build) (64-bit)
Quarto CLI 1.2.269
Checklist