mirror of
https://github.com/mindoc-org/mindoc.git
synced 2026-02-27 17:03:57 +08:00
解决空白行被过滤的问题
This commit is contained in:
@@ -599,8 +599,9 @@ function Node (node) {
|
||||
}
|
||||
|
||||
function isBlank (node) {
|
||||
//如果要忽略掉空白的表,请删除'TABLE','THEAD','TBODY','TR'
|
||||
return (
|
||||
['A', 'TH', 'TD', 'IFRAME', 'SCRIPT', 'AUDIO', 'VIDEO'].indexOf(node.nodeName) === -1 &&
|
||||
['A', 'TABLE','THEAD','TBODY','TR','TH', 'TD', 'IFRAME', 'SCRIPT', 'AUDIO', 'VIDEO'].indexOf(node.nodeName) === -1 &&
|
||||
/^\s*$/i.test(node.textContent) &&
|
||||
!isVoid(node) &&
|
||||
!hasVoid(node)
|
||||
|
||||
Reference in New Issue
Block a user