Correctly detect in-text links to attachments as raw URLs