1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 00:50:28 +00:00

Fixed context for parameterised transclusions

This commit is contained in:
Jeremy Ruston 2012-01-27 17:22:20 +00:00
parent 1aa9b084e2
commit a89acfc997

View File

@ -27,7 +27,7 @@ exports.macro = {
var placeholderRegExp = new RegExp("\\$"+(t+1),"mg");
text = text.replace(placeholderRegExp,withTokens[t]);
}
return store.renderText(targetTiddler.type,text,type,tiddler.title);
return store.renderText(targetTiddler.type,text,type,params.target);
} else {
// There's no parameterisation, so we can just render the target tiddler directly
return store.renderTiddler(type,params.target);