mozilla/kuma — pull request #565 by Elchi3 (2012-09-01 12:36:18+00:00)
Title: Fix bug 776815 - Generate valid TOC tree

This generates valid nested ol lists even if the document contains a heading hierarchy which not necessarily makes sense:
--h2
----h4
---h3