Fixed heading/TOC rendering