switched to marked.js
This commit is contained in:
@@ -9,7 +9,6 @@ var hash = function (input) {
|
||||
return h;
|
||||
}
|
||||
|
||||
var mdConverter = new Markdown.Converter();
|
||||
var $ = function(id){ return document.getElementById(id); }
|
||||
var $draft = $("draft");
|
||||
var $action = $("action");
|
||||
@@ -30,7 +29,7 @@ var updatePreview = function(){
|
||||
timer = setTimeout(function(){
|
||||
show($dashed_line);
|
||||
show($input_elems);
|
||||
$preview.innerHTML = mdConverter.makeHtml(content);
|
||||
$preview.innerHTML = marked(content);
|
||||
}, delay);
|
||||
};
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
@@ -47,7 +47,7 @@
|
||||
(when (params :js)
|
||||
(html
|
||||
(include-js "/js/md5.js")
|
||||
(include-js "/js/pagedown/Markdown.Converter.js")
|
||||
(include-js "/js/marked.js")
|
||||
(include-js "/js/main.js")))])))
|
||||
|
||||
(defn layout
|
||||
|
||||
Reference in New Issue
Block a user