(status: string | undefined)
| 170 | } |
| 171 | |
| 172 | function normalizeStatus(status: string | undefined): TodoStatus { |
| 173 | if (status === "completed") return "completed" |
| 174 | if (status === "in_progress") return "in_progress" |
| 175 | return "pending" |
| 176 | } |
| 177 | |
| 178 | export function parseMarkdownChecklist(md: string): TodoItem[] { |
| 179 | if (typeof md !== "string") return [] |