From 3b74cf00d3b36e043a56660168ab9402fa285df3 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 26 Mar 2019 03:05:50 +0100 Subject: [PATCH] RemovedMdToc disabled --- web/script.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/web/script.js b/web/script.js index 1af2131..237e1c9 100644 --- a/web/script.js +++ b/web/script.js @@ -5,7 +5,7 @@ $(document).ready(function() { function parseMd() { var GITHUB = 'https://raw.githubusercontent.com/gto76/python-cheatsheet/master/README.md' jQuery.get(GITHUB, function(text) { - // text = removeMdToc(text) + text = removeMdToc(text) var converter = new showdown.Converter() html = converter.makeHtml(text) aDiv = $('#main_container') @@ -20,6 +20,7 @@ function parseMd() { function removeMdToc(text) { out = [] console.log(text) + return text lines = text.match(/[^\r\n]+/g); insideContents = false for (line of lines) {