MCPcopy Create free account
hub / github.com/TruthHun/BookStack / isFirstTbody

Function isFirstTbody

static/word2md/turndown-plugin-gfm.js:110–121  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

108}
109
110function isFirstTbody (element) {
111 var previousSibling = element.previousSibling;
112 return (
113 element.nodeName === 'TBODY' && (
114 !previousSibling ||
115 (
116 previousSibling.nodeName === 'THEAD' &&
117 /^\s*$/i.test(previousSibling.textContent)
118 )
119 )
120 )
121}
122
123//修复,当表格中有换行时,解析不正确,修复表格为空时,增加3个空格,确保能正确解析
124function cell(content, node) {

Callers 1

isHeadingRowFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected