mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-11-23 10:07:19 +00:00
Add renderContext parameter to wiki.renderTiddler
This commit is contained in:
parent
bdd47feff9
commit
f427339a78
@ -525,10 +525,10 @@ Parse text from a tiddler and render it into another format
|
||||
outputType: content type for the output
|
||||
title: title of the tiddler to be rendered
|
||||
*/
|
||||
exports.renderTiddler = function(outputType,title) {
|
||||
exports.renderTiddler = function(outputType,title,renderContext) {
|
||||
var parser = this.parseTiddler(title),
|
||||
renderTree = new $tw.WikiRenderTree(parser,{wiki: this});
|
||||
renderTree.execute();
|
||||
renderTree.execute(renderContext);
|
||||
return renderTree.render(outputType);
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user