Add support for $:/tags/Global

This commit is contained in:
jeremy@jermolene.com
2022-05-26 21:11:53 +01:00
parent dec45f0fc3
commit 6f9f92fa69
3 changed files with 49 additions and 18 deletions
@@ -65,16 +65,12 @@ describe("Wiki-based tests", function() {
return tiddlers;
}
function createWidgetNode(parseTreeNode,wiki) {
return new widget.widget(parseTreeNode,{
wiki: wiki,
document: $tw.fakeDocument
});
function createWidgetNode(parser,wiki) {
return wiki.makeWidget(parser);
}
function parseText(text,wiki,options) {
var parser = wiki.parseText("text/vnd.tiddlywiki",text,options);
return parser ? {type: "widget", children: parser.tree} : undefined;
return wiki.parseText("text/vnd.tiddlywiki",text,options);
}
function renderWidgetNode(widgetNode) {