|
|
@ -258,12 +258,11 @@ Renderer.prototype.renderInline = function (tokens, options, env) { |
|
|
|
* instead of simple escaping. |
|
|
|
**/ |
|
|
|
Renderer.prototype.renderInlineAsText = function (tokens, options, env) { |
|
|
|
var result = '', |
|
|
|
rules = this.rules; |
|
|
|
var result = ''; |
|
|
|
|
|
|
|
for (var i = 0, len = tokens.length; i < len; i++) { |
|
|
|
if (tokens[i].type === 'text') { |
|
|
|
result += rules.text(tokens, i, options, env, this); |
|
|
|
result += tokens[i].content; |
|
|
|
} else if (tokens[i].type === 'image') { |
|
|
|
result += this.renderInlineAsText(tokens[i].children, options, env); |
|
|
|
} |
|
|
|