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.

md_strike(x)

Arguments

x

A character vector of text to be striked through.

Value

A glue vector of length equal to x.

Details

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

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")
#> ~~Example~~
md_strike(state.name[1:3])
#> ~~Alabama~~
#> ~~Alaska~~
#> ~~Arizona~~