findCommentRanges
function findCommentRanges(doc): { threadId: string;} & DocRange[];Defined in: comments/doc.ts:42
Walk every block and emit one entry per contiguous run of text that carries a
comment mark, grouped by thread id. Runs never span blocks (each carries a
single path). Order follows document order.
Parameters
Section titled “Parameters”| Parameter | Type |
|---|---|
doc | DocumentNode |
Returns
Section titled “Returns”{
threadId: string;
} & DocRange[]