Skip to content

Commit

Permalink
whitespace
Browse files Browse the repository at this point in the history
  • Loading branch information
hegemonic committed Oct 31, 2013
1 parent 752e871 commit 3c2c0e3
Showing 1 changed file with 16 additions and 12 deletions.
28 changes: 16 additions & 12 deletions lib/jsdoc/util/markdown.js
Original file line number Diff line number Diff line change
Expand Up @@ -57,14 +57,14 @@ function getParseFunction(parser, conf) {
if (parser === parsers.marked) {
parser = require(parser);
parser.setOptions({
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: true,
smartLists: true,
langPrefix: 'lang-'
});
gfm: true,
tables: true,
breaks: false,
pedantic: false,
sanitize: true,
smartLists: true,
langPrefix: 'lang-'
});
parse = function(source) {
source = escapeUnderscores(source);
return parser(source)
Expand All @@ -73,7 +73,8 @@ function getParseFunction(parser, conf) {
};
parse._parser = parsers.marked;
return parse;
} else if (parser === parsers.evilstreak) {
}
else if (parser === parsers.evilstreak) {
parser = require(parser).markdown;

parse = function(source) {
Expand All @@ -84,7 +85,8 @@ function getParseFunction(parser, conf) {
};
parse._parser = parsers.evilstreak;
return parse;
} else {
}
else {
throw new Error("unknown Markdown parser: '" + parser + "'");
}
}
Expand All @@ -102,10 +104,12 @@ exports.getParser = function() {
var conf = env.conf.markdown;
if (conf && conf.parser) {
return getParseFunction(parsers[conf.parser], conf);
} else if (conf && conf.githubRepoOwner && conf.githubRepoName) {
}
else if (conf && conf.githubRepoOwner && conf.githubRepoName) {
// use GitHub-friendly parser if GitHub-specific options are present
return getParseFunction(parsers.gfm, conf);
} else {
}
else {
// evilstreak is the default parser
return getParseFunction(parsers.evilstreak, conf);
}
Expand Down

0 comments on commit 3c2c0e3

Please sign in to comment.