(lines: ReadonlyArray<string>)
| 1397 | } |
| 1398 | |
| 1399 | function joinBody(lines: ReadonlyArray<string>): string { |
| 1400 | let start = 0 |
| 1401 | let end = lines.length |
| 1402 | while (start < end && lines[start]?.trim() === "") start++ |
| 1403 | while (end > start && lines[end - 1]?.trim() === "") end-- |
| 1404 | return lines.slice(start, end).join("\n") |
| 1405 | } |
| 1406 | |
| 1407 | function isHeadingLine(line: string | undefined): boolean { |
| 1408 | if (line === undefined) return false |
no test coverage detected