From f427339a784c3f4fdef147fdf8fd653a48329b98 Mon Sep 17 00:00:00 2001 From: Jeremy Ruston Date: Mon, 25 Mar 2013 10:42:14 +0000 Subject: [PATCH] Add renderContext parameter to wiki.renderTiddler --- core/modules/wiki.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/core/modules/wiki.js b/core/modules/wiki.js index cf14d57a6..1718751c0 100644 --- a/core/modules/wiki.js +++ b/core/modules/wiki.js @@ -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); };