render_latex()render_sweave()
render_listings()
render_html()
render_markdown(strict = FALSE)
render_jekyll(highlight = c("pygments", "prettify", "none"), extra = "")
render_rst(strict = FALSE)
TRUE, code blocks will be
indented by 4 spaces, otherwise they are put in fences
made by three backticks; for reST, if TRUE, code
is put under two colons andpygments, the Liquid syntax is used (default
approach Jekyll); for prettify, the output is
prepared for the JavaScript library none, nopygments, it can be 'linenos'; for
prettify, it can be 'linenums'NULL; corresponding hooks are set as a side effectrender_markdown(strict = TRUE)),
extended markdown (e.g. GitHub Flavored Markdown and
pandoc; render_markdown(strict = FALSE)), and
Jekyll (a blogging system on GitHub;
render_jekyll()). For LaTeX output, there are
three variants as well: render_latex(); use the LaTeX render_sweave(); use
render_listings(); use LaTeX render_html(), and reStructuredText uses
render_rst(). These functions can be used before knit() or in
the first chunk of the input document (ideally this chunk
has options include = FALSE and cache =
FALSE) so that all the following chunks will be
formatted as expected.
You can use knit_hooks to further customize
output hooks; see references.
Jekyll and Liquid: