code: function getHeadingMarkdown(text, size) {
    const foundedHeading = text.match(FIND_HEADING_RX);
    let heading = '';
  
    do {
      heading += '#';
      size -= 1;
    } while (size > 0);
  
    if (foundedHeading) {
      [, text] = text.split(foundedHeading[0]);
    }
  
    return `${heading} ${text}`;
  }
docs: Get heading markdown
  @param {string} text Source test
  @param {number} size size
  @returns {string}