docs: function _makeTableHeadAlignText(thElement) {
    const {align} = thElement;
    const textContent = (thElement.textContent || thElement.innerText).replace(RX_COLS, '');
    let textLength = textContent.length;
    let leftAlignValue = '';
    let rightAlignValue = '';
  
    if (align) {
      if (align === 'left') {
        leftAlignValue = ':';
        textLength -= 1;
      } else if (align === 'right') {
        rightAlignValue = ':';
        textLength -= 1;
      } else if (align === 'center') {
        rightAlignValue = ':';
        leftAlignValue = ':';
        textLength -= 2;
      }
    }
  
    textLength = Math.max(textLength, 3);
  
    return leftAlignValue + _createRepeatString('-', textLength) + rightAlignValue;
  }