Update regular expression for links to handle zero or more whitespaces in [text](link) (e.g. "[text]    (link)".