Background
In T317818: [L] [SPIKE] Add configurability options for table of contents, we investigated the possibility to set the table of contents as collapsed or expanded based on a given page via a magic word or other methods. This task will be for the development of this functionality
Acceptance criteria
- Build out a way for the table of contents to be set to collapsed or expanded based on a given page