(node: any)
| 60 | |
| 61 | // biome-ignore lint/suspicious/noExplicitAny: remark tree types are not available |
| 62 | function shouldSkipNode(node: any): boolean { |
| 63 | return ( |
| 64 | node.type === "link" || node.type === "code" || node.type === "inlineCode" |
| 65 | ); |
| 66 | } |
| 67 | |
| 68 | function splitByPattern(text: string, pattern: RegExp, buildNode: NodeBuilder) { |
| 69 | // Reset lastIndex — the pattern is reused across text nodes with the `g` flag |