Adding anchors around contained resources