From 256e03d0ebe5971a2521e9936eb426b37b6139d5 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jure=20=C5=A0orn?= Date: Tue, 26 Mar 2019 03:16:36 +0100 Subject: [PATCH] Fixed RemovedMdToc --- web/script.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/web/script.js b/web/script.js index 8f78d47..ea05b72 100644 --- a/web/script.js +++ b/web/script.js @@ -5,7 +5,9 @@ $(document).ready(function() { function parseMd() { var GITHUB = 'https://raw.githubusercontent.com/gto76/python-cheatsheet/master/README.md'; jQuery.get(GITHUB, function(text) { + console.log(text) text = removeMdToc(text); + console.log(text) var converter = new showdown.Converter(); html = converter.makeHtml(text); aDiv = $('#main_container'); @@ -38,7 +40,7 @@ function insertLinks() { $('h2').each(function() { aId = $(this).attr('id'); $(this).append('#'); - }) + }); } function addToc() {