Function parse_md_styles

Source
pub fn parse_md_styles(txt: &str) -> Vec<(Range<usize>, usize)>
Expand description

Parse the text and return the byte ranges for each structural element.

Returns a format suitable for TextArea: byte-range->style-idx. The style-idx is convertible to a MDStyle.