md_rule {gluedown} | R Documentation |
Markdown horizontal rule (4.1)
Description
Create a glue vector of characters used to represent a thematic break. This
markdown leaf block is rendered as the <hr>
HTML tag.
Usage
md_rule(char = c("*", "-", "_"), n = 3, space = FALSE)
Arguments
char |
The type of rule; either: |
n |
The width of the rule; an integer indicating number of times to repeat each character. Defaults to the minimum of 3. |
space |
logical or numeric; How many spaces to place between each
|
Details
A line consisting of 0-3 spaces of indentation, followed by a sequence of
three or more matching -
, _
, or *
characters, each followed optionally
by any number of spaces or tabs, forms a thematic break.
Value
A repeated-character glue
vector with length 1.
See Also
Other leaf block functions:
md_blank()
,
md_chunk()
,
md_fence()
,
md_heading()
,
md_indent()
,
md_label()
,
md_paragraph()
,
md_reference()
,
md_setext()
,
md_table()
Examples
md_rule()
md_rule("_")
md_rule(n = 10)
md_rule(space = TRUE)