Function madato::mk_md_data
source · pub fn mk_md_data(
heading_data: &[(String, usize)],
data: &[TableRow<String, String>],
render_options: &Option<RenderOptions>
) -> String
Expand description
Takes an ordered list of tuples; (heading_data) (key, column_width) and a slice of TableRows, the cell values The TableRow could carry more data than the keys provided. That is, only hm.get(key) will appear in the output.
returns a string of Markdown rows; \n
separated in the form, layed out in the
width as per the heading_data.
| val1 | val3 | val4 | val5 |
...
| val1 | val3 | val4 | val5 |
§Arguments
heading_data
- Name of column, and the width to use for each row.
data
- Vector of TableRows
render_options
- Set of “config” that drives filtering, ordering, output.