Skip to main content

render_line_with_width

Function render_line_with_width 

Source
pub fn render_line_with_width(
    line: &str,
    state: &mut MdState,
    caps: TerminalCaps,
    max_width: usize,
) -> Option<String>
Expand description

Width-aware variant of render_line. When max_width > 0, a flushed table’s column widths are capped so every line fits the budget — otherwise wrap_cells_to_width downstream chops long rows and shatters the table’s border structure. max_width = 0 keeps legacy behaviour.