md_label: Markdown link label

View source: R/md-link.R

md_labelR Documentation

Markdown link label

Description

Create the link labels that can latter be referred to with a link reference from md_reference().

Usage

md_label(text, label, ..., .name = FALSE)

Arguments

text

The text in the document to be hyperlinked.

label

A link label that is referenced elsewhere in the document.

...

A sequence of label = "text" named vector pairs. If any such pairs are provided, .name will be considered TRUE.

.name

logical; if TRUE, the pairs in ... will be used instead of any values supplied to x and url.

Details

A link label begins with a left bracket and ends with the first right bracket that is not backslash-escaped. Between these brackets there must be at least one non-whitespace character.

Value

A single glue vector of length equal to that of label and url, with elements the concatenated arguments.

See Also

Other leaf block functions: md_blank(), md_chunk(), md_fence(), md_heading(), md_indent(), md_paragraph(), md_reference(), md_rule(), md_setext(), md_table()

Examples

md_label(CRAN = "The CRAN website")
md_label(text = c("one", "two"), label = 1:2)

gluedown documentation built on May 29, 2024, 11:42 a.m.