These functions are used to create block nodes. Blocks nodes are used to represent block level elements in markdown.
md_block_doc(..., flags = "MD_DIALECT_COMMONMARK")
md_block_quote(...)
md_block_html(...)
md_block_p(...)
md_block_hr(...)
md_block_code(..., info = "", lang = "", fence_char = "`")
md_block_ul(..., tight = 1, mark = "*")
md_block_ol(..., tight = 1L, start = 1, mark_delimiter = ".")
md_block_li(..., is_task = 0, task_mark = " ")
md_block_h(..., level)
md_block_table(..., col_count, body_row_count, head_row_count = 1)
md_block_thead(...)
md_block_tbody(...)
md_block_tr(...)
md_block_th(..., align = c("default", "left", "center", "right"))
md_block_td(..., align = c("default", "left", "center", "right"))
Child nodes that will be contained within the block - all must inherit from md_node
.
Used by md_block_doc
to specify the document parser flag(s).
Used by md_block_code
nodes to specify the code block info string.
Used by md_block_code
nodes to specify the code block language.
Used by md_block_code
nodes to specify the code block fence character.
Used by md_block_ul
or md_block_ol
nodes to specify whether the list is tight or loose.
Used by md_block_ul
nodes to specify the list marker.
Used by md_block_ol
nodes to specify the start number of the list.
Used by md_block_ol
nodes to specify the delimiter between the value and text.
Only "."
and ")"
are allowed.
Used by md_block_li
nodes to specify whether the item is a task.
Used by md_block_li
task nodes to specify the task mark character.
Only " "
, "x"
, and "X"
are allowed.
Used by md_block_h
nodes to specify the heading level.
Used by md_block_table
nodes to specify the number of columns.
Used by md_block_table
nodes to specify the number of body rows.
Used by md_block_table
nodes to specify the number of header rows. Should only be 1
.
Used by md_block_td
or md_block_th
nodes to specify the alignment of the table contents.
Returns a list with a class of specified type along with md_span
and md_node
.