Parse markdown cells and returns the "paragraph" object.

as_paragraph_md(
  x,
  auto_color_link = "blue",
  md_extensions = NULL,
  pandoc_args = NULL,
  .from = "markdown+autolink_bare_uris",
  ...
)

Arguments

x

A character vector.

auto_color_link

A color of the link texts.

md_extensions

Pandoc's extensions. Although it is prefixed with "md", extensions for any formats specified to .from can be used. See https://www.pandoc.org/MANUAL.html#extensions for details.

pandoc_args

Additional command line options to pass to pandoc

.from

Pandoc's --from argument (default: 'markdown+autolink_bare_uris').

...

Arguments passed to internal functions.

Examples

if (rmarkdown::pandoc_available()) { library(flextable) ft <- flextable( data.frame( x = c("**foo** bar", "***baz***", "*qux*"), stringsAsFactors = FALSE ) ) ft <- compose(ft, j = "x", i = 1:2, value = as_paragraph_md(x)) autofit(ft) }
#> a flextable object. #> col_keys: `x` #> header has 1 row(s) #> body has 3 row(s) #> original dataset sample: #> [1] "**foo** bar" "***baz***" "*qux*"