( segments: MarkdownSegment[], content: string, )
| 131 | } |
| 132 | |
| 133 | function pushMarkdownSegment( |
| 134 | segments: MarkdownSegment[], |
| 135 | content: string, |
| 136 | ): void { |
| 137 | if (content.length === 0) { |
| 138 | return |
| 139 | } |
| 140 | |
| 141 | const last = segments.at(-1) |
| 142 | if (last?.type === 'markdown') { |
| 143 | last.content += content |
| 144 | return |
| 145 | } |
| 146 | |
| 147 | segments.push({ |
| 148 | type: 'markdown', |
| 149 | content, |
| 150 | }) |
| 151 | } |
| 152 | |
| 153 | function splitPipeCells(line: string): string[] { |
| 154 | let trimmed = line.trim() |
no outgoing calls
no test coverage detected