mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-06 11:04:35 +02:00
Using marked
instead of markdown
This commit is contained in:
parent
38a04bdae5
commit
d01271e654
6 changed files with 12 additions and 24 deletions
|
@ -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);
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue