Using marked instead of markdown

This commit is contained in:
Anh Hong 2020-05-13 13:14:39 +07:00 committed by hong4rc
parent 38a04bdae5
commit d01271e654
6 changed files with 12 additions and 24 deletions

View file

@ -1,5 +1,6 @@
var _ = require('underscore');
var Q = require('q');
var marked = require('marked');
var Views = require('../views');
var throttle = require('../util/throttle');
@ -122,7 +123,7 @@ var MarkdownGrabber = ContainedBase.extend({
updatePreview: function() {
var raw = this.getRawText();
var HTML = require('markdown').markdown.toHTML(raw);
var HTML = marked(raw);
this.$('div.insidePreview').html(HTML);
}
});