chunklet.document_chunker.md_table
Functions:
-
build_md_table–Build a pipe-formatted Markdown table from a list of rows.
build_md_table
Build a pipe-formatted Markdown table from a list of rows.
The first row is treated as the header. Each cell's content is converted
to a string and escaped so that literal pipe characters (|) do not
break the table layout.
Parameters:
-
(datalist[list[object]]) –List of rows, where each row is a list of cell values. The first element is the header row.
Returns:
-
str–A string containing the full pipe table, including leading/trailing
-
str–newlines, ready to embed in Markdown output.
Raises:
-
ValueError–If data is empty.