makeLinks function

Looks for links like [].