Skip to contents

Converts the given values to a character vector, formatted as verbatim Markdown. Character values are additionally wrapped in double quotes. Metadata like types or attributes of the input is not represented in the output, only its values.

Usage

as_md_vals(...)

Arguments

...

Values to be formatted. One or more R objects.

Value

A character vector.

See also

Other (Pandoc) Markdown functions: as_md_list(), as_md_val_list(), md_verb(), pipe_table(), strip_md(), strip_md_footnotes()

Examples

list(1L, 2.2, "other") |>
  pal::as_md_vals()
#> [1] "`1`"         "`2.2`"       "`\"other\"`"
  
# note that values are flattened before further processing them, so this yields the same result
list(list(list(1L, list(2.2), list(list("other"))))) |>
  pal::as_md_vals()
#> [1] "`1`"         "`2.2`"       "`\"other\"`"