Added support for transclusion macro

This commit is contained in:
Jeremy Ruston
2011-12-09 08:59:49 +00:00
parent ff73987457
commit a5a0567fe9
8 changed files with 60 additions and 29 deletions

View File

@@ -101,7 +101,7 @@ WikiTextParser.prototype.renderAsHtml = function(store,title) {
}
}
};
wikiTextMacros.executeMacros(this.tree,this.store);
wikiTextMacros.executeMacros(this.tree,store);
renderSubTree(this.tree);
return output.join("");
};
@@ -131,6 +131,7 @@ WikiTextParser.prototype.renderAsText = function(store,title) {
}
}
};
wikiTextMacros.executeMacros(this.tree,store);
renderSubTree(this.tree);
return output.join("");
};