Add anchors for internal refs