(line: string)
| 175 | } |
| 176 | |
| 177 | function isPipeTableDelimiter(line: string): boolean { |
| 178 | const cells = splitPipeCells(line) |
| 179 | if (cells.length === 0) { |
| 180 | return false |
| 181 | } |
| 182 | return cells.every(cell => /^:?-{3,}:?$/.test(cell)) |
| 183 | } |
| 184 | |
| 185 | function makePipeTableDelimiter(columnCount: number): string { |
| 186 | return `|${Array.from({ length: columnCount }, () => '---').join('|')}|` |
no test coverage detected