The markdown table to parse.
A 2D array of strings, where each inner array represents a row of the table, and each string within that array represents a cell.
This function will remove leading and trailing pipes from each row, as well as any empty lines. It will also remove the separator line (the second line in a standard markdown table). Each cell's content will be trimmed of leading and trailing whitespace.
| Header 1 | Header 2 |
|----------|----------|
| Cell 1 | Cell 2 |
| Cell 3 | Cell 4 |
`);
//=> [['Header 1', 'Header 2'], ['Cell 1', 'Cell 2'], ['Cell 3', 'Cell 4']]
Generated using TypeDoc
Parses a markdown table into a 2D array of strings.