diff --git a/core/modules/macros/tiddler.js b/core/modules/macros/tiddler.js index c785a7f4f..4d0b4ee74 100644 --- a/core/modules/macros/tiddler.js +++ b/core/modules/macros/tiddler.js @@ -75,7 +75,8 @@ exports.executeMacro = function() { children, childrenClone = [], t, - parents = this.parents.slice(0); + parents = this.parents.slice(0), + parseOptions = {}; // If there's no render title specified then use the current tiddler title if(typeof renderTitle !== "string") { renderTitle = this.tiddlerTitle; @@ -88,21 +89,13 @@ exports.executeMacro = function() { if(parents.indexOf(renderTemplate) !== -1) { children = [$tw.Tree.errorNode("Tiddler recursion error in <> macro")]; } else { + // Check for substitution parameters if(this.hasParameter("with")) { - // Parameterised transclusion - var targetTiddler = this.wiki.getTiddler(renderTemplate), - text = targetTiddler.fields.text; - var withTokens = [this.params["with"]]; // TODO: Allow for more than one with: parameter - for(t=0; t