Skip to main content

render_markdown_width

Function render_markdown_width 

Source
pub fn render_markdown_width(
    document: &MarkdownDocument,
    theme: &Theme,
    highlighter: &dyn Highlighter,
    width: u16,
) -> Vec<Line<'static>>
Expand description

Render with a known text width so tables can allocate columns and fall back to a stacked form on narrow terminals. u16::MAX means unbounded.