Merge pull request #5725 from Leopoldthecoder/dev

Changelog: reserve anchor elements
pull/5785/head
cinwell.li 2017-07-10 10:28:18 +08:00 committed by GitHub
commit fa861c5d90
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 {