Skip to main content

parse_markdown_inline

Function parse_markdown_inline 

Source
pub fn parse_markdown_inline(
    input: &str,
    theme: &Theme,
    base_style: Style,
) -> Line<'static>
Expand description

Parse a single-line or inline markdown string into a styled Line.

Handles inline styling: **bold**, *italic*, `code`, ~~strikethrough~~, and [link](url). Soft/hard breaks and block tags are collapsed to spaces so the output is a single logical line ready for word wrapping or truncating.