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) {