Handle links in replace text

Fixes #25