(node: Node)
| 24 | } |
| 25 | |
| 26 | function 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 | |
| 37 | export default function transform( |
| 38 | document: Node, |