mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2024-12-25 17:40:29 +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");
|
var placeholderRegExp = new RegExp("\\$"+(t+1),"mg");
|
||||||
text = text.replace(placeholderRegExp,withTokens[t]);
|
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 {
|
} else {
|
||||||
// There's no parameterisation, so we can just render the target tiddler directly
|
// There's no parameterisation, so we can just render the target tiddler directly
|
||||||
return store.renderTiddler(type,params.target);
|
return store.renderTiddler(type,params.target);
|
||||||
|
Loading…
Reference in New Issue
Block a user