Skip to main content

render_with

Function render_with 

Source
pub fn render_with(
    markup: &str,
    style: impl Into<StyleType>,
    emoji: bool,
    emoji_variant: Option<EmojiVariant>,
) -> Result<Text>
Expand description

render with a base style for the whole text and, when emoji is set, :emoji: codes replaced. Port of markup.render(markup, style, emoji, emoji_variant): a string with no [ is replaced whole, with emoji_variant, and not parsed.