mirror of
https://gitea.tendokyu.moe/eamuse/docs.git
synced 2024-11-27 16:10:51 +01:00
H1 should not be foldable
This commit is contained in:
parent
df26f4613a
commit
a3e32f95a6
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user