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

Function Node

static/word2md/turndown.js:593–599  ·  view source on GitHub ↗
(node)

Source from the content-addressed store, hash-verified

591}
592
593function Node (node) {
594 node.isBlock = isBlock(node);
595 node.isCode = node.nodeName.toLowerCase() === 'code' || node.parentNode.isCode;
596 node.isBlank = isBlank(node);
597 node.flankingWhitespace = flankingWhitespace(node);
598 return node
599}
600
601function isBlank (node) {
602 //如果要忽略掉空白的表,请删除'TABLE','THEAD','TBODY','TR'

Callers

nothing calls this directly

Calls 3

isBlockFunction · 0.85
flankingWhitespaceFunction · 0.85
isBlankFunction · 0.70

Tested by

no test coverage detected