(node: Node, cellType: NodeType = 'td')
| 3 | import type { Node, NodeType, ValidationError } from '../types'; |
| 4 | |
| 5 | function convertToRow(node: Node, cellType: NodeType = 'td') { |
| 6 | node.type = 'tr'; |
| 7 | node.attributes = {}; |
| 8 | |
| 9 | for (const cell of node.children) cell.type = cellType; |
| 10 | |
| 11 | return node; |
| 12 | } |
| 13 | |
| 14 | function isConditionalTag(node: Node, conditionalTags: string[]) { |
| 15 | return ( |