Disable sendfile when running dev from vagrant.
Upgrade gunicorn. Add BS3 classes to rendered markdown tables. Fixes #72
This commit is contained in:
parent
24f681de89
commit
f59e46c7df
4 changed files with 25 additions and 3 deletions
|
@ -54,7 +54,10 @@ var MDR = {
|
|||
meta: null,
|
||||
md: null,
|
||||
sanitize: true, // Override
|
||||
parse: function(md){ return marked(md); },
|
||||
renderer: new marked.Renderer(),
|
||||
parse: function(md){
|
||||
return marked(md, { renderer: this.renderer });
|
||||
},
|
||||
convert: function(md, sanitize) {
|
||||
if (this.sanitize !== null) {
|
||||
sanitize = this.sanitize;
|
||||
|
@ -103,4 +106,15 @@ var MDR = {
|
|||
|
||||
hook: function() {
|
||||
}
|
||||
};
|
||||
|
||||
MDR.renderer.table = function(header, body) {
|
||||
return '<table class="table table-bordered">\n'
|
||||
+ '<thead>\n'
|
||||
+ header
|
||||
+ '</thead>\n'
|
||||
+ '<tbody>\n'
|
||||
+ body
|
||||
+ '</tbody>\n'
|
||||
+ '</table>\n';
|
||||
};
|
Loading…
Add table
Add a link
Reference in a new issue