-
Notifications
You must be signed in to change notification settings - Fork 880
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Add TABLE/THEAD/TBODY/TR as element to not consider blank #276
Comments
solution: function isBlank (node) {
return (
['A','TABLE','THEAD','TBODY','TR','TH', 'TD', 'IFRAME', 'SCRIPT', 'AUDIO', 'VIDEO'].indexOf(node.nodeName) === -1 &&
/^\s*$/i.test(node.textContent) &&
!isVoid(node) &&
!hasVoid(node)
)
} |
don't forget |
martincizek
added a commit
to orchitech/turndown
that referenced
this issue
Mar 13, 2020
michbart
referenced
this issue
in orchitech/turndown
Mar 16, 2020
michbart
referenced
this issue
in orchitech/turndown
Mar 16, 2020
michbart
pushed a commit
to orchitech/turndown
that referenced
this issue
Jun 23, 2020
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
For Example:
will to be:
I hope this:
The text was updated successfully, but these errors were encountered: