Changelog: reserve anchor elements

pull/5725/head
Leopoldthecoder 2017-07-06 14:26:51 +08:00
parent 4e073d1bb1
commit 0b2a534361
1 changed files with 1 additions and 1 deletions

View File

@ -161,7 +161,7 @@
for (let len = changeLogNodes.length, i = 2; i < len; i++) {
let node = changeLogNodes[i];
a = changeLogNodes[i].querySelector('a');
a && a.remove();
a && a.getAttribute('class') === 'header-anchor' && a.remove();
if (node.tagName !== 'H3') {
fragments += changeLogNodes[i].outerHTML;
} else {