We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 8b244e1 + 5546fa9 commit cd637bbCopy full SHA for cd637bb
src/Diff.js
@@ -126,7 +126,9 @@ class HtmlDiff {
126
this.content.push(text);
127
} else {
128
if (specialCaseOpeningTagRegex.test(words[0])) {
129
- this.specialTagDiffStack.push(words[0]);
+ let matchedTag = words[0].match(specialCaseOpeningTagRegex);
130
+ matchedTag = '<' + matchedTag[0].replace(/(<|>| )/g, '') + '>';
131
+ this.specialTagDiffStack.push(matchedTag);
132
specialCaseTagInjection = '<ins class="mod">';
133
if (tag === 'del') {
134
words.shift();
0 commit comments