md_italic: Markdown italic emphasis

View source: R/md-inlines.R

md_italicR Documentation

Markdown italic emphasis

Description

Take a character vector and wrap each element in single underscores to create a glue vector of italic emphasis text. This inline is rendered as the ⁠<em>⁠ HTML tag.

Usage

md_italic(x)

Arguments

x

The text to be emphasized in italics.

Details

A single * or ⁠_⁠ can open or close emphasis... Emphasis begins with a delimiter that can open emphasis and ends with a delimiter that can close emphasis, and that uses the same character (⁠_⁠ or *) as the opening delimiter.

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_link(), md_softline(), md_strike(), md_text()

Examples

md_italic("Example")
md_italic(state.name)

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