Browse Source

Renderer cleanup

pull/82/head
Vitaly Puzrin 10 years ago
parent
commit
45773e223d
  1. 4
      lib/renderer.js

4
lib/renderer.js

@ -61,7 +61,7 @@ default_rules.image = function (tokens, idx, options, env, self) {
token.attrs[token.attrIndex('alt')][1] =
self.renderInlineAsText(token.children, options, env);
return self.renderToken(tokens, idx, options, env, self);
return self.renderToken(tokens, idx, options);
};
@ -234,7 +234,7 @@ Renderer.prototype.renderInline = function (tokens, options, env) {
if (typeof rules[type] !== 'undefined') {
result += rules[type](tokens, i, options, env, this);
} else {
result += this.renderToken(tokens, i, options, env);
result += this.renderToken(tokens, i, options);
}
}

Loading…
Cancel
Save