1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-01-07 07:50:26 +00:00

fix: remove pragma:true, otherwise following text will become children of it

This commit is contained in:
lin onetwo 2024-08-03 00:10:38 +08:00
parent bfd116a438
commit d0678716aa

View File

@ -25,7 +25,7 @@ Note that the syntax for comments is simplified to an opening "<!--" sequence an
"use strict";
exports.name = "commentblock";
exports.types = {block:true, pragma:true};
exports.types = {block:true};
exports.init = function(parser) {
this.parser = parser;
@ -62,8 +62,8 @@ exports.parse = function() {
}];
};
exports.serialize = function(tree) {
return tree.text;
exports.serialize = function(tree, serialize) {
return tree.text + "\n\n";
};
})();