(content: string)
| 7 | } |
| 8 | |
| 9 | function wrapRow(content: string): string { |
| 10 | const elem = 'tr'; |
| 11 | return `<${elem}>${NEW_LINE}${content}</${elem}>${NEW_LINE}`; |
| 12 | } |
| 13 | |
| 14 | export function table(tableData: Table): string { |
| 15 | if (tableData.rows.length === 0) { |