HTML = checkIcon;
        setTimeout(() => button.innerHTML = copyIcon, 1500);
      });
    });
    block.parentNode.appendChild(button);
  });
</script>

<!-- anchors js -->
<script>
  function slugify(text) {
    return text.toLowerCase()
      .trim()
      .replace(/[^a-z0-9\s-]/g, '')   // Remove special chars
      .replace(/\s+/g, '-')            // Replace spaces with dashes
      .replace(/-+/g, '-');            // Collapse multiple dashes
  }

    document.querySelectorAll('h1, h2, h3, h4, h5, h6