MCPcopy
hub / github.com/xintaofei/codeg / MarkedBlockToken

Interface MarkedBlockToken

src/components/chat/composer/markdown-insert.ts:5–9  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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. */
5interface 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]`). */
12function isTaskList(token: MarkedBlockToken): boolean {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected