|
@ -513,6 +513,15 @@ MarkdownIt.prototype.render = function (src, env) { |
|
|
return this.renderer.render(this.parse(src, env), this.options, env); |
|
|
return this.renderer.render(this.parse(src, env), this.options, env); |
|
|
}; |
|
|
}; |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/** |
|
|
|
|
|
* MarkdownIt.renderTokens(src [, env]) -> String |
|
|
|
|
|
* - src (String): source string |
|
|
|
|
|
* - env (Object): environment sandbox |
|
|
|
|
|
* |
|
|
|
|
|
* Render markdown string into an array of html-like tokens. |
|
|
|
|
|
* If you want to render each token separately (for example with React) |
|
|
|
|
|
**/ |
|
|
MarkdownIt.prototype.renderTokens = function (src, env) { |
|
|
MarkdownIt.prototype.renderTokens = function (src, env) { |
|
|
env = env || {}; |
|
|
env = env || {}; |
|
|
|
|
|
|
|
|