MCPcopy Create free account
hub / github.com/block/buzz / shouldSkipNode

Function shouldSkipNode

desktop/src/shared/lib/createRemarkPrefixPlugin.ts:62–66  ·  view source on GitHub ↗
(node: any)

Source from the content-addressed store, hash-verified

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

Callers 1

walkChildrenFunction · 0.70

Calls

no outgoing calls

Tested by

no test coverage detected