Fix link resolving when link contains a dash

For example: [[middle-night insomnia|nocturnal awakenings]]