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

Function isConditionalTag

src/transforms/table.ts:14–18  ·  view source on GitHub ↗
(node: Node, conditionalTags: string[])

Source from the content-addressed store, hash-verified

12}
13
14function isConditionalTag(node: Node, conditionalTags: string[]) {
15 return (
16 node.type === 'tag' && !!node.tag && conditionalTags.includes(node.tag)
17 );
18}
19
20function isComment(node: Node) {
21 return (

Callers 1

transformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected