Ensuring tables of contents don't contain nested links.