mirror of
https://github.com/Jermolene/TiddlyWiki5
synced 2025-07-07 20:42:50 +00:00
Ensure that the view macro doesn't generate a pair of nested macros
Because that will stop the refresh mechanism from working
This commit is contained in:
parent
1963c56fa9
commit
b17a43707d
@ -54,12 +54,12 @@ exports.executeMacro = function() {
|
|||||||
if(value === undefined) {
|
if(value === undefined) {
|
||||||
return $tw.Tree.Text("");
|
return $tw.Tree.Text("");
|
||||||
} else {
|
} else {
|
||||||
var link = $tw.Tree.Macro("link",{
|
var link = $tw.Tree.Element("span",{},[$tw.Tree.Macro("link",{
|
||||||
srcParams: {to: value},
|
srcParams: {to: value},
|
||||||
content: [$tw.Tree.Text(value)],
|
content: [$tw.Tree.Text(value)],
|
||||||
isBlock: this.isBlock,
|
isBlock: this.isBlock,
|
||||||
wiki: this.wiki
|
wiki: this.wiki
|
||||||
});
|
})]);
|
||||||
link.execute(parents,this.tiddlerTitle);
|
link.execute(parents,this.tiddlerTitle);
|
||||||
return link;
|
return link;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user