H1 should not be foldable

This commit is contained in:
Bottersnike 2022-11-17 17:55:15 +00:00
parent df26f4613a
commit a3e32f95a6

View File

@ -36,7 +36,7 @@ const make_foldable = (root) => {
new_e.appendChild(old_e);
}
foldable(stack.root, new_e);
if (stack.root.tagName !== "H1") foldable(stack.root, new_e);
let parent_level;
for (parent_level = level - 1; parent_level > 0; parent_level--) if (child_stacks[parent_level].root) break;