Clean up of headings so TOC generates correctly for CSS Masking.