ement("ul");
        listSection.appendChild(nextSection);
        return nextSection;
      } else if (heading.tagName.slice(-1) < previousHeading.tagName.slice(-1)) {
        let indentationDiff =
          parseInt(previousHeading.tagName.slice(-1)) -
          parseInt(heading.tagName.slice(-1));
        while (indentationDiff > 0) {
          listSection = listSection.parentElement;
          indentationDiff--;
        }
      }
    }
    return listSection;
  }
    
  function setIdFromContent(element