docs: function (wholeMatch, before, inner, afterInner, id, end) {
      inner = inner.replace(regex, getLink);
      if (defsToAdd[id]) {
        addDefNumber(defsToAdd[id]);
        return before + inner + afterInner + refNumber + end;
      }
      return wholeMatch;
    }