Browse Source

Changelog: reserve anchor elements

Leopoldthecoder 8 years ago
parent
commit
0b2a534361
1 changed files with 1 additions and 1 deletions
  1. 1 1
      examples/pages/template/changelog.tpl

+ 1 - 1
examples/pages/template/changelog.tpl

@@ -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 {