md_strike: Markdown strikethrough (extension)

View source: R/md-inlines.R

md_strikeR Documentation

Markdown strikethrough (extension)

Description

Take a character vector and wrap each element in tildes to create a glue vector of strikethrough text. This inline is rendered as the ⁠<strike>⁠ HTML tag.

Usage

md_strike(x)

Arguments

x

A character vector of text to be striked through.

Details

GFM enables the strikethrough extension, where an additional emphasis type is available. Strikethrough text is any text wrapped in two tildes (~).

Value

A glue vector of length equal to x.

See Also

Other inline functions: md_autolink(), md_bold(), md_code(), md_convert(), md_disallow(), md_escape(), md_hardline(), md_image(), md_issue(), md_italic(), md_link(), md_softline(), md_text()

Other markdown extensions: md_issue(), md_table()

Examples

md_strike("Example")
md_strike(state.name[1:3])

gluedown documentation built on Nov. 2, 2023, 5:48 p.m.