Open jefelino opened 4 years ago
Is this a question specific to bookdown or related to Rmarkdown ?
I believe you can do that in rmarkdown for html_document
but only if you use a custom template too (by setting template
argument). I think this is by design as the defaut rmarkdown template works well with provided theme.
Anyway, we need more information I think:
_output.yml
? Thank you !
This is a limitation of rmarkdown for now. It should be done there first https://github.com/rstudio/rmarkdown/issues/2035
Since version 2.0, pandoc has supported custom syntax highlighting themes, provided in a
.theme
file which is passed as an argument to--highlight-style
(see [https://pandoc.org/MANUAL.html#syntax-highlighting]()). But if I try to provide a custom theme file using thehighlight
field in my_output.yml
file, bookdown halts with this error message:It would be better to allow parameters that include a
.theme
extension to go through to pandoc.By filing an issue to this repo, I promise that
xfun::session_info('bookdown')
. I have upgraded all my packages to their latest versions (e.g., R, RStudio, and R packages), and also tried the development version:remotes::install_github('rstudio/bookdown')
.I understand that my issue may be closed if I don't fulfill my promises.