mirror of
https://github.com/TiddlyWiki/TiddlyWiki5.git
synced 2026-04-28 05:34:37 +00:00
Get rid of the tweakParseTreeNode() hack
It’s an embarrassing hangover from a refactoring of the parsing mechanism last year.
This commit is contained in:
@@ -34,8 +34,7 @@ exports.parse = function() {
|
||||
textRef = $tw.utils.trim(this.match[1]);
|
||||
// Prepare the transclude widget
|
||||
var transcludeNode = {
|
||||
type: "element",
|
||||
tag: "$transclude",
|
||||
type: "transclude",
|
||||
attributes: {}
|
||||
};
|
||||
// Prepare the tiddler widget
|
||||
@@ -45,8 +44,7 @@ exports.parse = function() {
|
||||
targetField = tr.field,
|
||||
targetIndex = tr.index,
|
||||
tiddlerNode = {
|
||||
type: "element",
|
||||
tag: "$tiddler",
|
||||
type: "tiddler",
|
||||
attributes: {
|
||||
tiddler: {type: "string", value: targetTitle}
|
||||
},
|
||||
|
||||
Reference in New Issue
Block a user