Handle toc/no toc in search results