Pandoc has several built in templates and code highlighting themes that can be customized and included in the template and highlight-style YAML fields, respectively. pandoc_template_types() and pandoc_highlight_styles() return the available templates and highlight styles in pandoc, respectively. use_pandoc_template() creates a new file based on a template from pandoc or R Markdown and use_pandoc_highlight_style() creates a new highlight theme file based on an existing pandoc theme.

pandoc_template_types()

pandoc_highlight_styles()

use_pandoc_template(type, path, source = c("rmarkdown", "pandoc"))

use_pandoc_highlight_style(theme, path)

Arguments

type

The template type

path

The path to write the file to

source

The template source ("pandoc" or "rmarkdown")

theme

The name of the theme

Value

a character vector