Skip to main content

parse_md_table_cells

Function parse_md_table_cells 

Source
pub fn parse_md_table_cells(line: &str) -> Vec<String>
Expand description

Split a markdown table row on | and trim each cell.

Why: Markdown table rows have leading and trailing pipes that produce empty cells when split naïvely; consumers want only the real cell content. What: Returns the trimmed cell strings, dropping leading/trailing empties produced by the bordering pipes. Test: tests::parse_md_table_cells_basic.