From 5200bca6b94ae5020afc5e26f409af8c6a6d6c9a Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 26 Mar 2019 03:11:28 +0100 Subject: [PATCH] RemovedMdToc disabled --- web/script.js | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/web/script.js b/web/script.js index bd76bea..aa2159d 100644 --- a/web/script.js +++ b/web/script.js @@ -18,10 +18,9 @@ function parseMd() { } function removeMdToc(text) { - out = [] + var out = [] lines = text.match(/[^\r\n]+/g); console.log(lines) - return text insideContents = false for (line of lines) { if (line.trim() === 'Contents') { @@ -33,7 +32,7 @@ function removeMdToc(text) { out.push(line) } } - return out + return text } function insertLinks() {