Skip to main content

parse_help_lines

Function parse_help_lines 

Source
pub fn parse_help_lines(
    title: impl Into<String>,
    lines: Vec<String>,
) -> HelpContent
Expand description

Parse lines into a help buffer + metadata. Walks the joined text once, stripping [label](url) markdown links down to their visible labels and indexing each link’s range against the cleaned text. The buffer’s content is the cleaned text; links land on the metadata.