rmarkdown icon indicating copy to clipboard operation
rmarkdown copied to clipboard

[FR] github_document Dark HTML Preview

Open amarakon opened this issue 2 years ago • 1 comments

I use GitHub on my web browser in dark mode. The default HTML preview is white background and black text, but I would like for a dark theme that matches GitHub's dark theme so the preview will be more accurate. Like this:

output:
  github_document:
    theme: dark

amarakon avatar Apr 29 '22 15:04 amarakon

Thanks for the feature request!

We'll consider this in a next release. If anyone wants to help, please submit a PR.

Currently, as a workaround you would need to use html_document() with a dark theme and probably tweak some CSS.

cderv avatar Apr 29 '22 16:04 cderv