Don't display the table of contents when rendering previews, or if there are no headings