mirror of
https://github.com/jsdoc/jsdoc.git
synced 2025-12-08 19:46:11 +00:00
add dialect parameter for evilstreak Markdown parser
This commit is contained in:
parent
660338e93b
commit
79590baac7
@ -37,7 +37,7 @@ function getParser(parser, conf) {
|
||||
parser = require("evilstreak/markdown");
|
||||
|
||||
return function(source) {
|
||||
return parser.toHTML(source);
|
||||
return parser.renderJsonML(parser.toHTMLTree(source, conf.dialect));
|
||||
}
|
||||
} else {
|
||||
throw "unknown Markdown parser: '" + parser + "'";
|
||||
@ -70,7 +70,7 @@ if (conf && conf.parser) {
|
||||
parse = getParser("gfm", conf);
|
||||
} else {
|
||||
// evilstreak is the default parser
|
||||
parse = getParser("evilstreak");
|
||||
parse = getParser("evilstreak", conf);
|
||||
}
|
||||
|
||||
// set up the list of "tags" (properties) to process
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user