From 83b0b6a523ccc39cb0affb97c69a3fc03c0b1d90 Mon Sep 17 00:00:00 2001 From: Julian Lam Date: Wed, 24 Jul 2013 13:19:36 -0400 Subject: [PATCH] fixing issue with md parser --- src/postTools.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/postTools.js b/src/postTools.js index f7809f3f50..1b2c588a55 100644 --- a/src/postTools.js +++ b/src/postTools.js @@ -146,7 +146,7 @@ var RDB = require('./redis.js'), breaks: true }); - if (md.length > 0) { + if (md && md.length > 0) { var parsedContentDOM = cheerio.load(marked(md)); var domain = global.nconf.get('url');