as_md_list | R Documentation |
Convenience wrapper around pander::pandoc.list.return()
to convert a character vector (or something coercible to) to a Markdown list.
as_md_list(
x,
type = c("unordered", "ordered", "ordered_roman"),
tight = TRUE,
indent_lvl = 0L,
wrap = NULL
)
x |
R object, e.g. a character vector. Each element of |
type |
Markdown list type. One of
|
tight |
Whether or not to add additional spacing between list items. |
indent_lvl |
Level of indentation of the resulting Markdown list. For each level, four additional spaces are added in front of every list item. An integer scalar. |
wrap |
An optional string to wrap the list items in. |
If x
is empty, a character vector of length zero. Otherwise, a character scalar.
Other (Pandoc) Markdown functions:
as_md_val_list()
,
as_md_vals()
,
md_verb()
,
pipe_table()
,
strip_md()
,
strip_md_footnotes()
rownames(mtcars) |>
pal::as_md_list() |>
cat()
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.