(out: MarkdownInline[], text: string)
| 97 | } |
| 98 | |
| 99 | function pushText(out: MarkdownInline[], text: string): void { |
| 100 | if (text.length === 0) return; |
| 101 | const last = out[out.length - 1]; |
| 102 | if (last !== undefined && last.kind === "text") { |
| 103 | out[out.length - 1] = { kind: "text", text: last.text + text }; |
| 104 | return; |
| 105 | } |
| 106 | out.push({ kind: "text", text }); |
| 107 | } |
| 108 | |
| 109 | function scanRun(input: string, start: number, ch: string): number { |
| 110 | let i = start; |
no test coverage detected