1
0
mirror of https://github.com/Jermolene/TiddlyWiki5 synced 2025-08-10 07:43:49 +00:00

refactor: fold long comment

This commit is contained in:
lin onetwo 2025-03-09 23:31:49 +08:00
parent 711bf01049
commit 5c0198b7b5

View File

@ -186,7 +186,10 @@ exports.serialize = function (tree,serialize) {
var currentMarker = findMarker(node.tag, child.tag);
// Handle class attributes
var classAttr = child.attributes && child.attributes.class ? "." + child.attributes.class.value : "";
// same level text nodes may be split into multiple children, and separated by deeper list sub-tree. We collect same level text nodes into this list, and concat then submit them before enter deeper list.
/**
* same level text nodes may be split into multiple children, and separated by deeper list sub-tree.
* We collect same level text nodes into this list, and concat then submit them before enter deeper list.
*/
var content = [];
$tw.utils.each(child.children,function (subNode) {
if(isListNode(subNode)) {