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