fix bug 874066 - Let all levels of headings display in TOC

https://bugzilla.mozilla.org/show_bug.cgi?id=874066