Skip to content

Commit

Permalink
Don't make TD elements comment containers
Browse files Browse the repository at this point in the history
  • Loading branch information
jwbth committed Nov 11, 2020
1 parent 184b331 commit a39c54a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/js/Parser.js
Original file line number Diff line number Diff line change
Expand Up @@ -410,7 +410,9 @@ export default class Parser {
// Cases when the comment has no wrapper that contains only that comment (for example,
// https://ru.wikipedia.org/wiki/Википедия:Форум/Технический#202010140847_AndreiK). The second
// parameter of getElementsByClassName() is an optimization for the worker context.
signatureElement.parentNode.getElementsByClassName('cd-signature', 2).length > 1
signatureElement.parentNode.getElementsByClassName('cd-signature', 2).length > 1 ||

signatureElement.parentNode.tagName === 'TD'
) {
// Collect inline parts after the signature
treeWalker.currentNode = signatureElement;
Expand Down

0 comments on commit a39c54a

Please sign in to comment.