1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2024-12-24 00:50:28 +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:
Jeremy Ruston 2012-06-19 16:46:50 +01:00
parent 1963c56fa9
commit b17a43707d

View File

@ -54,12 +54,12 @@ exports.executeMacro = function() {
if(value === undefined) {
return $tw.Tree.Text("");
} else {
var link = $tw.Tree.Macro("link",{
var link = $tw.Tree.Element("span",{},[$tw.Tree.Macro("link",{
srcParams: {to: value},
content: [$tw.Tree.Text(value)],
isBlock: this.isBlock,
wiki: this.wiki
});
})]);
link.execute(parents,this.tiddlerTitle);
return link;
}