Filter headings for table of contents and compute associated prefix
Headings to process
Optional
Options
Initial levels for prefix computation
Extracted headings
Filter headings for table of contents and compute associated prefix