switched to marked.js

This commit is contained in:
Christian Mueller
2014-01-03 15:48:12 +01:00
parent bccac0acbc
commit ad4500edc3
4 changed files with 1229 additions and 1415 deletions
+1 -2
View File
@@ -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
+1 -1
View File
@@ -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