Blocks that are not allowed in top-level pages (pages without chapter_id).
Note: This is NOT for chapter front pages. Chapter front pages can contain these blocks.
The blocks, at any depth, that arenβt allowed in top-level pages (pages without chapter_id).
Note: This is NOT for chapter front pages. Chapter front pages can contain these blocks.
Checks if blocks, at any depth, contain any that are not allowed in top-level pages (pages
without chapter_id). See blocks_not_allowed_in_top_level_pages.
Filters lock-chapter blocksβ inner blocks based on whether the chapter is locked.
If the chapter is not locked, inner blocks are removed to prevent unauthorized access.
This function recursively processes all blocks to handle nested structures.
Gives repeated heading anchors a -2, -3, β¦ suffix so that every heading on the page renders
a unique id. Duplicating a heading block copies its anchor, which is the usual way repeats end
up on a page.