mirror of
https://github.com/NodeBB/NodeBB.git
synced 2025-11-07 22:45:46 +01:00
fixing issue with md parser
This commit is contained in:
@@ -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');
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user