Add anchor links for heading elements