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

Function unexpectedNodeError

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

Source from the content-addressed store, hash-verified

24}
25
26function unexpectedNodeError(node: Node): ValidationError {
27 return {
28 id: 'table-syntax',
29 level: 'critical',
30 message: `Found ${node.type}${
31 node.tag ? ` ${node.tag}` : ''
32 } where a list was expected. Make sure all content inside table cells is indented.`,
33 location: node.location,
34 };
35}
36
37export default function transform(
38 document: Node,

Callers 1

transformFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected