Replace named anchors by header ids