MCPcopy Create free account
hub / github.com/markdoc/markdoc / isComment

Function isComment

src/transforms/table.ts:20–24  ·  view source on GitHub ↗
(node: Node)

Source from the content-addressed store, hash-verified

18}
19
20function isComment(node: Node) {
21 return (
22 node.type === 'comment' || (node.type === 'tag' && node.tag === 'comment')
23 );
24}
25
26function unexpectedNodeError(node: Node): ValidationError {
27 return {

Callers 1

transformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected