[jast-util-to-texast] Check whether col how multirow elements
Closed this issue · 2 comments
github-actions commented
[jast-util-to-texast] Check whether col how multirow elements
error out while underfull ones are fine
(node: Col | Tr) => {
if (node.name === 'col') {
hasCols = true
columns.push('l')
// TODO: [jast-util-to-texast] Check whether col how multirow elements
numberOfRows = node.children.length
return
}
if (hasCols) return
numberOfRows += 1
let tempCols: string[] = []
node?.children?.forEach((child) => {
if (!isElement(child)) return
if (child.name !== 'td') return
for (let i = 0; i < (child?.attributes?.colspan ?? 1); i++) {
tempCols.push('l')
}
})
// Just make the table as wide as it needs to be, overfull tables
// error out while underfull ones are fine
b7572ce66285efd133d078766b47d03395ff98bb
github-actions commented
Closed in 63a6ca2
github-actions commented
Closed in a56d7d8