(line: string)
| 75 | | { type: "markdown"; content: string } |
| 76 | | { type: "table"; rows: string[][] }; |
| 77 | |
| 78 | const isTableRow = (line: string) => /^\s*\|.*\|\s*$/.test(line); |
| 79 | const parseTableRow = (line: string) => line.trim().replace(/^\|/, "").replace(/\|$/, "").split("|").map((cell) => cell.trim()); |
| 80 | const isSeparatorCell = (cell: string) => /^:?-{3,}:?$/.test(cell.trim()); |
no outgoing calls
no test coverage detected