Commit fa861c5d authored by cinwell.li's avatar cinwell.li Committed by GitHub

Merge pull request #5725 from Leopoldthecoder/dev

Changelog: reserve anchor elements
parents 60f5bd8e 0b2a5343
......@@ -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 {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment