Obsidian publish ToC - Specify headers for inclusion

Use case or problem

I’d like to be able to exclude certain header levels from showing up under the Table of Contents in Obsidian Publish. While this might be possible using CSS (I haven’t cracked that yet, but I’m a neophyte), it seems the Publish UI might be an easier place to manage this.

Proposed solution

In the Publish UI, if activated, enable a multi-select list to enable publishers to include/exclude specific header levels (e.g. H1, H2, H3, … H6) from appearing in the Table of Contents block.

Current workaround (optional)

Like I said, one might be able to handle by CSS, but I don’t know how to do this (suggestions?). Anyway, it would be more straightforward for nontechnical users to access this in the UI.

Thanks for considering!