MCPcopy Create free account
hub / github.com/ZenNotes/zennotes / removeTaskAtIndex

Function removeTaskAtIndex

packages/shared-domain/src/tasklists.ts:279–281  ·  view source on GitHub ↗
(markdown: string, taskIndex: number)

Source from the content-addressed store, hash-verified

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

Callers 2

store.tsFile · 0.90
tasklists.test.tsFile · 0.90

Calls 1

takeTaskLineAtIndexFunction · 0.85

Tested by

no test coverage detected