1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-12-08 01:38:06 +00:00

Tweak #7866 to omit "rule" property when unset, instead of leaving it null

Also make tests pass
This commit is contained in:
Jeremy Ruston
2024-06-08 16:51:00 +01:00
parent 5db3eeeaa2
commit 1a57d08feb
3 changed files with 36 additions and 33 deletions

View File

@@ -259,7 +259,7 @@ WikiParser.prototype.parseBlock = function(terminatorRegExpString) {
var start = this.pos;
var children = this.parseInlineRun(terminatorRegExp);
var end = this.pos;
return [{type: "element", tag: "p", children: children, start: start, end: end, rule: null }];
return [{type: "element", tag: "p", children: children, start: start, end: end }];
};
/*
@@ -444,7 +444,7 @@ WikiParser.prototype.pushTextWidget = function(array,text,start,end) {
text = $tw.utils.trim(text);
}
if(text) {
array.push({type: "text", text: text, start: start, end: end, rule: null});
array.push({type: "text", text: text, start: start, end: end});
}
};