Skip to content

Commit 3b74cf0

Browse files
committed
RemovedMdToc disabled
1 parent 0b13a4e commit 3b74cf0

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

web/script.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ $(document).ready(function() {
55
function parseMd() {
66
var GITHUB = 'https://raw.githubusercontent.com/gto76/python-cheatsheet/master/README.md'
77
jQuery.get(GITHUB, function(text) {
8-
// text = removeMdToc(text)
8+
text = removeMdToc(text)
99
var converter = new showdown.Converter()
1010
html = converter.makeHtml(text)
1111
aDiv = $('#main_container')
@@ -20,6 +20,7 @@ function parseMd() {
2020
function removeMdToc(text) {
2121
out = []
2222
console.log(text)
23+
return text
2324
lines = text.match(/[^\r\n]+/g);
2425
insideContents = false
2526
for (line of lines) {

0 commit comments

Comments
 (0)