mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-04 14:07:01 +00:00
Ensure {{}} doesn't generate a transclude widget with no attributes (#7768)
This commit is contained in:
@@ -79,6 +79,9 @@ exports.parse = function() {
|
||||
}
|
||||
return [tiddlerNode];
|
||||
} else {
|
||||
// No template or text reference is provided, so we'll use a blank target. Otherwise we'll generate
|
||||
// a transclude widget that transcludes the current tiddler, often leading to recursion errors
|
||||
transcludeNode.attributes["$tiddler"] = {name: "$tiddler", type: "string", value: ""};
|
||||
return [transcludeNode];
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user