diff --git a/web/script.js b/web/script.js index 237e1c9..bd76bea 100644 --- a/web/script.js +++ b/web/script.js @@ -19,9 +19,9 @@ function parseMd() { function removeMdToc(text) { out = [] - console.log(text) - return text lines = text.match(/[^\r\n]+/g); + console.log(lines) + return text insideContents = false for (line of lines) { if (line.trim() === 'Contents') {