docs: function escapeDelimiters(pattern, text) {
    return text.replace(pattern, (match, start, end) => {
      const hasEnd = typeof end === 'string';
      const matchSliceEnd = hasEnd ? match.length - end.length : match.length;
      const content = match.slice(start.length, matchSliceEnd);
      return `${escape(start)}${content}${hasEnd ? escape(end) : ''}`;
    });
  }