pandoc_template_types | R Documentation |
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)
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 |
a character vector
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.