I really don't want to do this but it should theoretically be possible to build a function to collapse parts of the TOC in html format
I really don't want to do this but it should theoretically be possible to build a function to collapse parts of the TOC in html format