Improving the HTML structure of TOC macro output

Proposal posted there: Introducing a way to transform divs to specific HTML elements .