Skip to content

Commit 5200bca

Browse files
committed
RemovedMdToc disabled
1 parent 046d69a commit 5200bca

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

web/script.js

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,10 +18,9 @@ function parseMd() {
1818
}
1919

2020
function removeMdToc(text) {
21-
out = []
21+
var out = []
2222
lines = text.match(/[^\r\n]+/g);
2323
console.log(lines)
24-
return text
2524
insideContents = false
2625
for (line of lines) {
2726
if (line.trim() === 'Contents') {
@@ -33,7 +32,7 @@ function removeMdToc(text) {
3332
out.push(line)
3433
}
3534
}
36-
return out
35+
return text
3736
}
3837

3938
function insertLinks() {

0 commit comments

Comments
 (0)