1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-10-19 17:57:38 +00:00

Fix invocation of JS macros

This commit is contained in:
jeremy@jermolene.com
2022-05-21 16:31:34 +01:00
parent e50101322f
commit ec1ec8ccd8
3 changed files with 21 additions and 3 deletions

View File

@@ -200,8 +200,8 @@ TranscludeWidget.prototype.getTransclusionTarget = function() {
$tw.utils.each(srcVariable.params,function(param) {
$tw.utils.addAttributeToParseTreeNode(parser.tree[0],param.name,param["default"])
});
} else if(srcVariable.isMacroDefinition) {
// For macros, wrap the parse tree in a vars widget assigning the parameters to variables named "__paramname__"
} else {
// For macros and ordinary variables, wrap the parse tree in a vars widget assigning the parameters to variables named "__paramname__"
parser = {
tree: [
{