Skip to main content

render_table

Function render_table 

Source
pub fn render_table(
    rows: &[Vec<String>],
    opts: &Options,
) -> Result<String, DocError>
Expand description

Render rows as text: Markdown table (first row = header) or tab-separated lines.

The table may not be wider than Options::max_cols columns, and rendering stops as soon as the output exceeds Options::max_output_chars, so padding short rows to the table width can never multiply the output beyond that budget.