Skip to main content

render_table

Function render_table 

Source
pub fn render_table(
    rows: &[&str],
    gutter_prefix: &str,
    gutter_style: Style,
) -> Vec<Line<'static>>
Expand description

Render a Markdown table (sequence of |...| lines, including the optional |---|---| separator row) into a set of styled Lines.

gutter_style is applied to the leading gutter prefix (e.g. "│ ").