Skip to main content

parse_markdown

Function parse_markdown 

Source
pub fn parse_markdown(
    text: &str,
    theme: &Theme,
    registry: Option<&GrammarRegistry>,
) -> Vec<StyledLine>
Expand description

Parse markdown text into styled lines for terminal rendering

If registry is provided, uses syntect for syntax highlighting in code blocks, which supports ~150+ languages. If None, falls back to uniform code styling.