convert external spec references to anchors