Browse Source

add default empty env object

pull/149/head
Thomas Reggi 10 years ago
parent
commit
1770fd4548
  1. 1
      lib/index.js

1
lib/index.js

@ -488,6 +488,7 @@ MarkdownIt.prototype.use = function (plugin /*, params, ... */) {
* and then pass updated object to renderer.
**/
MarkdownIt.prototype.parse = function (src, env) {
env = (env) ? env : {}
var state = new this.core.State(src, this, env);
this.core.process(state);

Loading…
Cancel
Save