Skip to main content

render_inline

Function render_inline 

Source
pub fn render_inline(
    line: &str,
    default_fg: Color,
    state: MdState,
) -> RenderedLine
Expand description

Render one logical line of markdown-ish text into styled spans.

default_fg is the colour for plain-text spans (e.g. Color::White for the assistant body so it stays bright on black).