(markdown: string, taskIndex: number)
| 277 | |
| 278 | /** Delete the task line at `taskIndex` entirely. */ |
| 279 | export function removeTaskAtIndex(markdown: string, taskIndex: number): string { |
| 280 | return takeTaskLineAtIndex(markdown, taskIndex).body |
| 281 | } |
| 282 | |
| 283 | function leadingIndentWidth(line: string): number { |
| 284 | return line.match(/^[ \t]*/)?.[0].length ?? 0 |
no test coverage detected