pub fn parse_with_starting_style<S>(
    current_style: Style,
    input: S
) -> (StyledString, Style)where
    S: Into<String>,
Available on crate feature ansi only.
Expand description

Parses the given text with ANSI codes, using the given starting style.

Useful if you need to parse something in the middle of a large text.

Returns the parsed string, and the ending style.