If I use the output bookdown::github_document2
and set html_preview: true
, the HTML preview file will be light mode, not the same as the actual GitHub website for me. How can I set the HTML preview to dark mode?
There is no Github dark mode in the preview with github_document()
. You would need to make a special theme using html_document()
close to your Github look.
This would need to be a feature request for rmarkdown. You could even submit a PR with some change for us to review, or someone else.
Thanks. I am not experienced with R so I will open an issue on GitHub. Here is the issue: [FR] github_document Dark HTML Preview · Issue #2354 · rstudio/rmarkdown · GitHub
1 Like
Thank you ! That is helpful to have that in our issue list!
This topic was automatically closed 7 days after the last reply. New replies are no longer allowed.
If you have a query related to it or one of the replies, start a new topic and refer back with a link.