Learn R Programming

gluedown (version 1.0.9)

md_rule: 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)

Value

A repeated-character glue vector with length 1.

Arguments

char

The type of rule; either: -, _, or *. Defaults to *.

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 char. Defaults to FALSE, which places 0 spaces.

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.

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

Run this code
md_rule()
md_rule("_")
md_rule(n = 10)
md_rule(space = TRUE)

Run the code above in your browser using DataLab