mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-15 15:32:32 +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,6 +1,7 @@
|
|||
var _ = require('underscore');
|
||||
var Q = require('q');
|
||||
var Backbone = require('backbone');
|
||||
var marked = require('marked');
|
||||
|
||||
var util = require('../util');
|
||||
var intl = require('../intl');
|
||||
|
@ -43,7 +44,7 @@ var GitDemonstrationView = ContainedBase.extend({
|
|||
);
|
||||
|
||||
var convert = function(markdowns) {
|
||||
return require('markdown').markdown.toHTML(markdowns.join('\n'));
|
||||
return marked(markdowns.join('\n'));
|
||||
};
|
||||
|
||||
this.JSON.beforeHTML = convert(this.JSON.beforeMarkdowns);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue