md_list {gluedown} | R Documentation |
Markdown generic list
Description
Turn a character vector into a valid markdown list block. This is a generic
function that calls md_bullet()
, md_order()
, or md_task()
depending on
what string is provided in the type
argument.
Usage
md_list(x, type = c("bullet", "ordered", "task"), ...)
Arguments
x |
A character vector of list items. |
type |
The type of list to create; either bullet, ordered, or task. |
... |
Arguments passed to the appropriate list type function. |
Value
A glue
vector with length equal to x
.
See Also
Other container block functions:
md_bullet()
,
md_order()
,
md_quote()
,
md_task()
Examples
md_list(state.name[1:5], type = "bullet", marker = "+")
md_list(state.name[6:10], type = "ordered", marker = ")")
md_list(state.name[11:15], type = "task", check = 3:5)
[Package gluedown version 1.0.9 Index]