Update anchors in the table of contents