Skip to contents

This function is a wrapper around rmarkdown::render() which supplies a custom Lua Pandoc filter to color text.

Usage

knit_with_colored_text(input, ...)

Arguments

input

The input file to be rendered.

...

Additional arguments passed on to rmarkdown::render().

Value

As for rmarkdown::render(), when run_pandoc = TRUE, the compiled document is written into the output file, and the path of the output file is returned. When run_pandoc = FALSE, the path of the Markdown output file, with attributes knit_meta (the knitr meta data collected from code chunks) and intermediates (the intermediate files/directories generated by rmarkdown::render()).

Examples

if (FALSE) {
knit_with_colored_text("example_file.Rmd")
}