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:
parent
1aa9b084e2
commit
a89acfc997
@ -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);
|
||||
|
Loading…
Reference in New Issue
Block a user