code: function replaceLink(str, targets) {
    return str.replace(/\{@link\s+([^}]+)\}/g, function(full, link) {
      if (link in targets) {
        return util.format('[%s](%s)', link, targets[link]);
      } else if (link.match(/^(https?:)?\/\//)) {
        return util.format('[%s](%s)', link, link);
      }
      return link;
    });
  }
docs: Replaces {@link ...} with `[...](...)`.
  @param {string} str - string to process
  @param {Object} targets - map of targets to use for links (optional)
  @return {string}