View source: R/pandoc_convert.R
pandoc_convert | R Documentation |
Pandoc
FileConvert a Pandoc
File
pandoc_convert( file, text = NULL, from = pandoc_input_formats(), to = pandoc_output_formats() )
file |
file to read |
text |
string to use instead of file if set |
from |
input format |
to |
output format |
the converted text
if (rmarkdown::pandoc_available()) { x <- pandoc_convert( text = "\\section{Test}", from = "latex", to = "markdown") stopifnot(identical(x, "Test\n====") || identical(x, "# Test")) }
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.