fix: render invisible comment and parsemode as data element

This commit is contained in:
lin onetwo
2024-08-04 00:48:29 +08:00
parent 2a75077747
commit c39297698f
6 changed files with 9 additions and 6 deletions
+1 -1
View File
@@ -133,7 +133,7 @@ exports.serializeParseTree = function serializeParseTree(tree,tiddlerType) {
$tw.utils.each(tree,function(node) {
output.push(serializeParseTree(node,tiddlerType));
});
} else {
} else if(tree) {
if(tree.type === "text" && !tree.rule) {
output.push(tree.text);
} else {