MCPcopy
hub / github.com/basecamp/trix / needsTableSeparator

Method needsTableSeparator

src/trix/models/html_parser.js:405–412  ·  view source on GitHub ↗
(element)

Source from the content-addressed store, hash-verified

403 }
404
405 needsTableSeparator(element) {
406 if (config.parser.removeBlankTableCells) {
407 const content = element.previousSibling?.textContent
408 return content && /\S/.test(content)
409 } else {
410 return element.previousSibling
411 }
412 }
413
414 // Margin translation
415

Callers 1

processElementMethod · 0.95

Calls 1

testMethod · 0.80

Tested by

no test coverage detected