Skip to main content

replace_shortcodes

Function replace_shortcodes 

Source
pub fn replace_shortcodes<'a>(
    node: &mut Node<'a>,
    options: &Gemoji,
    alloc: &'a Allocator,
)
Expand description

Turn the gemoji shortcodes in text, :rocket:, into their emoji; with accessible, each in a <span role="img" aria-label="rocket emoji">.