- handle link references correctly