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