File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change 1010//===========================================================================
1111function loadMarkDownScript ( callback ) {
1212 var script = document . createElement ( 'script' ) ;
13- script . src = "https://cdn.jsdelivr.net/npm/showdown/dist/showdown.min.js" ;
13+ // script.src = "https://cdn.jsdelivr.net/npm/showdown/dist/showdown.min.js";
1414 //script.src = "https://cdn.jsdelivr.net/npm/marked/marked.min.js";
15+ script . src = https :/ / cdn . jsdelivr . net / npm / marked / lib / marked . umd . js ;
1516 script . type = "text/javascript" ;
1617 script . onload = callback ;
1718 document . head . appendChild ( script ) ;
@@ -25,11 +26,11 @@ function renderMarkdwon(markdown_view_id, markdown_url) {
2526 const markdown = this . responseText ;
2627
2728 //marked
28- // const html = marked.parse(markdown);
29+ const html = marked . parse ( markdown ) ;
2930
3031 //showdown
31- const converter = new showdown . Converter ( ) ;
32- const html = converter . makeHtml ( markdown ) ;
32+ // const converter = new showdown.Converter();
33+ // const html = converter.makeHtml(markdown);
3334
3435 document . getElementById ( markdown_view_id ) . innerHTML = html ;
3536 }
You can’t perform that action at this time.
0 commit comments