| # browser() | # browser() | ||||
| } | } | ||||
| pandoc_args <- c(pandoc_args, rmarkdown::pandoc_toc_args(toc, toc_depth)) | |||||
| pandoc_args <- c(pandoc_args, | |||||
| "--section-divs", | |||||
| rmarkdown::pandoc_toc_args(toc, toc_depth)) | |||||
| mathjax_url <- if (mathjax %in% c("default", "local")) { | mathjax_url <- if (mathjax %in% c("default", "local")) { | ||||
| mathjax_local <- Sys.getenv("RMARKDOWN_MATHJAX_PATH", unset = NA) | mathjax_local <- Sys.getenv("RMARKDOWN_MATHJAX_PATH", unset = NA) | ||||
| fig_width, fig_height, fig_retina, keep_md, dev | fig_width, fig_height, fig_retina, keep_md, dev | ||||
| ), | ), | ||||
| pandoc = rmarkdown::pandoc_options( | pandoc = rmarkdown::pandoc_options( | ||||
| to = "html", | |||||
| to = "html5", | |||||
| from = "markdown+ascii_identifiers+tex_math_single_backslash", | from = "markdown+ascii_identifiers+tex_math_single_backslash", | ||||
| args = c( | args = c( | ||||
| css_files, | css_files, |