Markups in headings are properly removed when those headings are included in the table of contents