mirror of
https://github.com/pcottle/learnGitBranching.git
synced 2025-08-17 00:00:59 +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 Main = require('../app');
|
||||
var intl = require('../intl');
|
||||
|
@ -356,7 +357,7 @@ var ModalAlert = ContainedBase.extend({
|
|||
|
||||
render: function() {
|
||||
var HTML = (this.JSON.markdown) ?
|
||||
require('markdown').markdown.toHTML(this.JSON.markdown) :
|
||||
marked(this.JSON.markdown) :
|
||||
this.template(this.JSON);
|
||||
// one more hack -- allow adding custom random HTML if specified
|
||||
if (this.options._dangerouslyInsertHTML) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue