mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-05-05 07:57:41 +00:00
Allow for macros and classes at both run level and block level
Involving a bit of a refactoring of the parameters to the $tw.Tree.Macro constructor
This commit is contained in:
@@ -54,10 +54,11 @@ exports.executeMacro = function() {
|
||||
if(value === undefined) {
|
||||
return [];
|
||||
} else {
|
||||
var link = $tw.Tree.Macro("link",
|
||||
{to: value},
|
||||
[$tw.Tree.Text(value)],
|
||||
this.wiki);
|
||||
var link = $tw.Tree.Macro("link",{
|
||||
srcParams: {to: value},
|
||||
content: [$tw.Tree.Text(value)],
|
||||
wiki: this.wiki
|
||||
});
|
||||
link.execute(parents,this.tiddlerTitle);
|
||||
return [link];
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user