       currentSectionList
      );
      setIdFromContent(heading, index);
      addNavLink(heading, currentSectionList);
    
      headingIds.push(heading.id);
      headingIntersectionData[heading.id] = {
        y: 0
      };
      previousHeading = heading;
    });
  }
    
  window.addEventListener("load", (event) => {
    buildToc();
  });
</script>

</body>
</html>