Closed joshuaborn closed 5 years ago
First, this is the bookdown repo, and I think you meant to post it to the blogdown repo instead.
Second, the fields header-includes
, etc are supposed to be top-level fields in the YAML frontmatter, instead of sub-options of blogdown::html_page
. See Pandoc's Manual: https://pandoc.org/MANUAL.html#structural-variables
I see. Thank you.
(And, yes, I did mean to open this in the blogdown repo. My mistake.)
This old thread has been automatically locked. If you think you have found something related to this, please open a new issue by following the issue guide (https://yihui.org/issue/), and link to this old issue if necessary.
In Section D.8 The default HTML template of Creating Websites with R Markdown, all of
$header-includes$
,$css$
,$include-before$
,$toc$
, and$include-after$
are supposed to be available for customization of the Pandoc output of R Markdown posts, but only$css$
and$toc$
appear to work. Any values passed to the$header-includes$
,$include-before$
, and$include-after$
variables disappear without an error message.Steps to reproduce:
blogdown::html_page:
in the front matter:blogdown::html_page:
in the front matter to be arrays, as in the below:This is what the final front matter looks like for content/post/2015-07-23-r-markdown.Rmd:
Environment
I am using RStudio Version 1.2.1335, which I have confirmed is the latest.
I am using the latest version of R and have updated libraries. See
xfun::session_info()
results below: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.