mini_document {minidown} | R Documentation |
Convert to an HTML document powered by the lightweight CSS framework.
Description
The output format is HTML5 in general. If framework = "bootstrap"
is given,
the output format becomes HTML4 and comparable to rmarkdown::html_document
except for the behavior of the code_folding
option.
Usage
mini_document(
framework = "sakura",
theme = "default",
toc = FALSE,
toc_float = FALSE,
toc_highlight = FALSE,
section_divs = TRUE,
code_folding = c("none", "show", "hide"),
results_folding = c("none", "show", "hide"),
tabset = FALSE,
code_download = FALSE,
self_contained = TRUE,
math = "katex_serverside",
template = "default",
extra_dependencies = NULL,
includes = list(),
keep_md = FALSE,
pandoc_args = NULL,
...
)
Arguments
framework , theme |
A string to specify the name of a framework
(default: |
toc |
|
toc_float |
TRUE to float the table of contents to the left of the main document content. |
toc_highlight |
This is an experimental feature. |
section_divs |
Wrap sections in |
code_folding |
Setup code folding by a string or a named list.
A choice for the string are |
results_folding |
Setup results folding by a string, |
tabset |
|
code_download |
If |
self_contained |
Produce a standalone HTML file with no external dependencies, using data: URIs to incorporate the contents of linked scripts, stylesheets, images, and videos. Note that even for self contained documents MathJax is still loaded externally (this is necessary because of its size). |
math |
This is a good choice when you want to exclude JavaScript from the output.
The default value |
template |
Pandoc template. If "default", the package's internal template
is used. If a path, user's original template is used. If |
extra_dependencies |
Additional function arguments to pass to the
base R Markdown HTML output formatter |
includes |
Named list of additional content to include within the
document (typically created using the |
keep_md |
Keep the markdown file generated by knitting. |
pandoc_args |
Additional command line options to pass to pandoc |
... |
Arguments passed to |
Examples
## Not run:
library(rmarkdown)
library(minidown)
render("input.Rmd", mini_document)
## End(Not run)