Skip to main content

render

Function render 

Source
pub fn render(markup: &str) -> Text
Expand description

Parse markup and return a Text with applied styles.

Uses byte-based scanning (since [ and ] are ASCII single-byte) to avoid allocating a Vec<char>. Literal text is sanitized to prevent raw ANSI escape injection.