Revert "Parse TOC based on heading change"

This reverts commit 08349f61fd4588ed4cc21eaf279bda3d03278f9d.