You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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 the highlight field in my _output.yml file, bookdown halts with this error message:
Error in match.arg(highlight, highlighters()) :
'arg' should be one of “default”, “tango”, “pygments”, “kate”, “monochrome”, “espresso”, “zenburn”, “haddock”, “breezedark”
Calls: <Anonymous> ... get_base_format -> do.call -> <Anonymous> -> match.arg
Execution halted
Exited with status 1.
It would be better to allow parameters that include a .theme extension to go through to pandoc.
I have provided the necessary information about my issue.
If I'm asking a question, I have already asked it on Stack Overflow or RStudio Community, waited for at least 24 hours, and included a link to my question there.
If I'm filing a bug report, I have included a minimal, self-contained, and reproducible example, and have also included 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').
If I have posted the same issue elsewhere, I have also mentioned it in this issue.
I have learned the Github Markdown syntax, and formatted my issue correctly.
I understand that my issue may be closed if I don't fulfill my promises.
The text was updated successfully, but these errors were encountered:
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.
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.
The text was updated successfully, but these errors were encountered: