tscanlin / tocbot

Build a table of contents from headings in an HTML document.
MIT License
1.39k stars 115 forks source link

Prevent hidden nodes showing up in the table of contents by replacing `textContent` with `innerText` #320

Closed paulborm closed 10 months ago

paulborm commented 10 months ago

This change should prevent hidden child nodes inside headings, like