The subset of a `marked` block token we inspect (structurally typed to avoid * a direct `marked` dependency). A `list` token carries per-item `task` flags.
| 3 | /** The subset of a `marked` block token we inspect (structurally typed to avoid |
| 4 | * a direct `marked` dependency). A `list` token carries per-item `task` flags. */ |
| 5 | interface MarkedBlockToken { |
| 6 | type: string |
| 7 | raw: string |
| 8 | items?: Array<{ task?: boolean }> |
| 9 | } |
| 10 | |
| 11 | /** True for a `list` token with any task-list item (`- [ ]` / `- [x]`). */ |
| 12 | function isTaskList(token: MarkedBlockToken): boolean { |
nothing calls this directly
no outgoing calls
no test coverage detected