Updating TOC links and labels to match headings.