mdman::format::text

Function fill_cell

Source
fn fill_cell(text: &str, width: usize, alignment: Alignment) -> Vec<String>
Expand description

Formats a cell. Word-wraps based on width, and adjusts based on alignment.

Returns a vec of lines for the cell.