mirror of
https://github.com/explosion/spaCy.git
synced 2025-07-13 01:32:32 +03:00
Fix custom table row styling
This commit is contained in:
parent
8cc4874655
commit
5e1a10f617
|
@ -12,17 +12,17 @@ function isNum(children) {
|
||||||
}
|
}
|
||||||
|
|
||||||
function isDividerRow(children) {
|
function isDividerRow(children) {
|
||||||
if (children.length && children[0].props && children[0].props.name == 'td') {
|
if (children.length && children[0].props && children[0].type.name == 'Td') {
|
||||||
const tdChildren = children[0].props.children
|
const tdChildren = children[0].props.children
|
||||||
if (tdChildren && !Array.isArray(tdChildren) && tdChildren.props) {
|
if (tdChildren && !Array.isArray(tdChildren) && tdChildren.props) {
|
||||||
return tdChildren.props.name === 'em'
|
return tdChildren.type === 'em'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
return false
|
return false
|
||||||
}
|
}
|
||||||
|
|
||||||
function isFootRow(children) {
|
function isFootRow(children) {
|
||||||
if (children.length && children[0].props.name === 'td') {
|
if (children.length && children[0].type.name === 'Td') {
|
||||||
const cellChildren = children[0].props.children
|
const cellChildren = children[0].props.children
|
||||||
if (
|
if (
|
||||||
cellChildren &&
|
cellChildren &&
|
||||||
|
|
Loading…
Reference in New Issue
Block a user