(lines: ReadonlyArray<string>)
| 1419 | } |
| 1420 | |
| 1421 | function joinBody(lines: ReadonlyArray<string>): string { |
| 1422 | let start = 0 |
| 1423 | let end = lines.length |
| 1424 | while (start < end && lines[start]?.trim() === "") start++ |
| 1425 | while (end > start && lines[end - 1]?.trim() === "") end-- |
| 1426 | return lines.slice(start, end).join("\n") |
| 1427 | } |
| 1428 | |
| 1429 | function isHeadingLine(line: string | undefined): boolean { |
| 1430 | if (line === undefined) return false |
no test coverage detected