smartLists: true,
smartypants: false
});
-
+ // A FEW HACKS!!?
+
+ text = text.replace(/\\\n/g,' ');
return Roo.Markdown.marked(text);
};
//
};
Renderer.prototype.table = function(header, body) {
- return '<table>\n'
+ return '<table class="table table-striped">\n'
+ '<thead>\n'
+ header
+ '</thead>\n'
return;
}
try {
- if (opt) opt = merge({}, marked.defaults, opt);
+ if (opt) { opt = merge({}, marked.defaults, opt); }
return Parser.parse(Lexer.lex(src, opt), opt);
} catch (e) {
e.message += '\nPlease report this to https://github.com/chjj/marked.';