fixing issue with md parser

v1.18.x
Julian Lam 12 years ago
parent 2f00640b6b
commit 83b0b6a523

@ -146,7 +146,7 @@ var RDB = require('./redis.js'),
breaks: true breaks: true
}); });
if (md.length > 0) { if (md && md.length > 0) {
var parsedContentDOM = cheerio.load(marked(md)); var parsedContentDOM = cheerio.load(marked(md));
var domain = global.nconf.get('url'); var domain = global.nconf.get('url');

Loading…
Cancel
Save