Macros§
Structs§
Statics§
- DISALLOWED_
BLOCKS_ 🔒IN_ TOP_ LEVEL_ PAGES - 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.
Functions§
- contains_
blocks_ not_ allowed_ in_ top_ level_ pages - Checks if blocks contain any 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.
- filter_
lock_ chapter_ blocks - 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.
- remap_
ids_ in_ content - remove_
sensitive_ attributes - Removes the private spec from exercise tasks.
- replace_
duplicate_ client_ ids - Replaces duplicate client IDs with new unique IDs in Gutenberg blocks.
- replace_
duplicate_ 🔒client_ ids_ inner - validate_
unique_ client_ ids - Validates that all client IDs in the Gutenberg blocks are unique. Returns an error if duplicate client IDs are found.
- validate_
unique_ 🔒client_ ids_ inner