Creating an interactive table of contents on a blog article

Hey, I am trying to build a rather simple article page for a blog.
I am struggling with making the table of contents (parsed from html headings 3) interactive.

The goal is to be able to click on the specific heading and scroll into view at the specific target heading. Not quite sure where to start, or what interaction / component to use. While I managed to parse the HTML and make an array of the existing heading 3 items, I can’t seem to link those heading 3 to the parts of the text and activate a scroll.

Has anyone seen that case before?

Thank you!
Simona

Hi, that can be achieved through anchor links. Each section should have an unique identifier so that you can link the section in your table of contents. You can read more about it in Creating anchor links – Squarespace Help Center