mirror of
https://github.com/ryanhanwu/How-To-Ask-Questions-The-Smart-Way.git
synced 2025-12-26 18:14:58 +08:00
Update Don't rush to claim that you have found a bug and new Toc
This commit is contained in:
parent
6d82ac9a07
commit
9401e3c763
2 changed files with 46 additions and 46 deletions
2
toc.js
2
toc.js
|
|
@ -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");
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue