R/as-paragraph-md.R
as_paragraph_md.Rd
Parse markdown cells and returns the "paragraph" object.
as_paragraph_md(
x,
auto_color_link = "blue",
md_extensions = NULL,
pandoc_args = NULL,
metadata = rmarkdown::metadata,
replace_na = "",
.from = "markdown+autolink_bare_uris-raw_html-raw_attribute",
.footnote_options = NULL,
...
)
A character vector.
A color of the link texts.
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.
Additional command line options to pass to pandoc
A list of metadata, typically the parsed result of the YAML front matter
(default: rmarkdown::metadata
). This value is used iff the .from
argument specifies the input format that supports the YAML metadata blocks.
A value to replace NA
(default = ""
).
Pandoc's --from
argument (default: 'markdown+autolink_bare_uris'
).
Options for footnotes generated by footnote_options()
.
Arguments passed to internal functions.
if (rmarkdown::pandoc_available("2.0.6")) {
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)
}
#>
#> Attaching package: ‘flextable’
#> The following object is masked from ‘package:ftExtra’:
#>
#> separate_header
x
foo bar
baz
*qux*