Update Don't rush to claim that you have found a bug and new Toc

This commit is contained in:
Ryan Wu 2015-03-31 01:30:23 +08:00
parent 6d82ac9a07
commit 9401e3c763
2 changed files with 46 additions and 46 deletions

2
toc.js
View file

@ -10,7 +10,7 @@
headerText = header.textContent.trim(),
hIndex = parseInt(header.nodeName.substring(1)) - 1,
indent = " ".repeat(hIndex),
link = ['<pre>', indent, '* [', headerText, '](', url, '#', headerText, ')', '\n', '</pre>'];
link = ['<pre>', indent, '* [', headerText, '](', '#', headerText, ')', '\n', '</pre>'];
result += link.join('');
}
var win = window.open("", "win");