fix options not being passed
This commit is contained in:
parent
28f62c91a7
commit
03c4cbec25
@ -98,7 +98,7 @@ function marked(src, opt, callback) {
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
try {
|
try {
|
||||||
if (opt) opt = merge({}, marked.defaults, opt);
|
opt = merge({}, marked.defaults, opt || {});
|
||||||
checkSanitizeDeprecation(opt);
|
checkSanitizeDeprecation(opt);
|
||||||
return Parser.parse(Lexer.lex(src, opt), opt);
|
return Parser.parse(Lexer.lex(src, opt), opt);
|
||||||
} catch (e) {
|
} catch (e) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user