Content Editor
How to use:
1. Edit or paste your content in the editor above
2. Use headings (H1-H6) to structure your content
3. Pasted from Word, Google Docs or a WordPress block? Hit 🧹 Clean Tags to strip the junk (<span id="400">, <!-- wp:paragraph -->, Mso classes). It is off by default, and it keeps meaningful markup such as <span class="toc-title">
4. Select a TOC style from the dropdown
5. The TOC updates automatically as you type
6. Copy the complete code (HTML + CSS) below for WordPress