resolves #280 trailing comma shouldn't be included in link