Skip to content

Commit 256e03d

Browse files
committed
Fixed RemovedMdToc
1 parent b209237 commit 256e03d

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

web/script.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@ $(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+
console.log(text)
89
text = removeMdToc(text);
10+
console.log(text)
911
var converter = new showdown.Converter();
1012
html = converter.makeHtml(text);
1113
aDiv = $('#main_container');
@@ -38,7 +40,7 @@ function insertLinks() {
3840
$('h2').each(function() {
3941
aId = $(this).attr('id');
4042
$(this).append('<a href="#'+aId+'" name="'+aId+'">#</a>');
41-
})
43+
});
4244
}
4345

4446
function addToc() {

0 commit comments

Comments
 (0)