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)
A character vector of text to be striked through.
A glue
vector of length equal to x
.
GFM enables the strikethrough extension, where an additional emphasis type is
available. Strikethrough text is any text wrapped in two tildes (~
).
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()
md_strike("Example")
#> ~~Example~~
md_strike(state.name[1:3])
#> ~~Alabama~~
#> ~~Alaska~~
#> ~~Arizona~~