pandoc_convert {flexsiteboard}R Documentation

Convert a Pandoc File

Description

Convert a Pandoc File

Usage

pandoc_convert(
  file,
  text = NULL,
  from = pandoc_input_formats(),
  to = pandoc_output_formats()
)

Arguments

file

file to read

text

string to use instead of file if set

from

input format

to

output format

Value

the converted text

Examples

if (rmarkdown::pandoc_available()) {
  x <- pandoc_convert(
      text = "\\section{Test}", from = "latex", to = "markdown")
  stopifnot(identical(x, "Test\n====") || identical(x, "# Test"))
}

[Package flexsiteboard version 0.0.7 Index]