powered by
Pandoc
Convert a Pandoc File
pandoc_convert( file, text = NULL, from = pandoc_input_formats(), to = pandoc_output_formats() )
the converted text
file to read
string to use instead of file if set
input format
output format
if (rmarkdown::pandoc_available()) { x <- pandoc_convert( text = "\\section{Test}", from = "latex", to = "markdown") stopifnot(identical(x, "Test\n====") || identical(x, "# Test")) }
Run the code above in your browser using DataLab