I recently rebuilt the [HTML] vignette in my package passport. When I looked at the vignette in RStudio's help viewer, the syntax highlighting had gone terribly wrong:
The weird part, though, is that if I click on the "Show in new window" button or open the vignette in a browser, it appears with a light background and looks fine:
and other packages vignettes look fine in the help pane, e.g. dplyr::dplyr
:
...so as far as I can tell, the issue seems to originate in the combination of the CSS that RStudio applies to vignettes as part of the dark theme and the HTML classes produced by rmarkdown::html_vignette
.
I updated all the relevant packages to development versions, and RStudio to the preview build (1.1.442) to no avail. Thoughts or suggestions?