Skip to main content

parse_to_styled_words

Function parse_to_styled_words 

Source
pub fn parse_to_styled_words(text: &str, theme: &Theme) -> Vec<(String, Style)>
Expand description

Parse markdown and split into words with their styles

Useful for word-wrapping while preserving styles