Browse Source

rules must reference this.rules in renderInline

pull/14/head
loveencounterflow 10 years ago
parent
commit
6cc4662035
  1. 5
      lib/renderer.js

5
lib/renderer.js

@ -296,10 +296,11 @@ function Renderer() {
Renderer.prototype.renderInline = function (tokens, options) { Renderer.prototype.renderInline = function (tokens, options) {
var result = ''; var result = '',
_rules = this.rules;
for (var i = 0, len = tokens.length; i < len; i++) { for (var i = 0, len = tokens.length; i < len; i++) {
result += rules[tokens[i].type](tokens, i, options); result += _rules[tokens[i].type](tokens, i, options);
} }
return result; return result;

Loading…
Cancel
Save