fix toc when doctype is book
fix test breakage
Merge pull request #102 from mojavelinux/book-toc-fix

Fix toc when doctype is book