fix options not being passed

This commit is contained in:
Tony Brix 2019-11-06 15:00:03 -06:00
parent 28f62c91a7
commit 03c4cbec25

View File

@ -98,7 +98,7 @@ function marked(src, opt, callback) {
return;
}
try {
if (opt) opt = merge({}, marked.defaults, opt);
opt = merge({}, marked.defaults, opt || {});
checkSanitizeDeprecation(opt);
return Parser.parse(Lexer.lex(src, opt), opt);
} catch (e) {