Your proposed syntax is fine, you should just take a closer look at how the link targets look like (I can't see the patch, so I don't know if you have done it right there).
And of course you've got a point with [\w+] links being on-site, I just didn't abstract from the syntax used on IRC.