From 409c62b22ce33638b687a9cf2a2e77040d31ccd4 Mon Sep 17 00:00:00 2001 From: Jeff Williams Date: Thu, 18 Oct 2012 14:01:46 -0700 Subject: [PATCH] don't set the github repo's nameWithOwner if the config is incomplete --- plugins/markdown.js | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/plugins/markdown.js b/plugins/markdown.js index 95691985..3c556a38 100644 --- a/plugins/markdown.js +++ b/plugins/markdown.js @@ -33,10 +33,14 @@ function getParser(parser, conf) { if (parser === parsers.gfm) { parser = require(parser); + var githubConf = { - nameWithOwner: conf.githubRepoOwner + "/" + conf.githubRepoName, repoName: conf.githubRepoName }; + if (conf.githubRepoOwner && conf.githubRepoName) { + githubConf.nameWithOwner = conf.githubRepoOwner + "/" + conf.githubRepoName; + } + parser.hardwrap = !!conf.hardwrap; return function(source) {