You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When overriding a component, is there a way to generate a ref?
Context: I have generated a TOC from the h2s in my markdown file. Now I would like to create a feature that scrolls to the corresponding heading in the document when the TOC is clicked. I read ref is the way to go, so now I am trying to add refs to all h2s.
I have tried the below, but ref is not included int he resulting HTML? ("test" is, so I know the rest is working fine)
When overriding a component, is there a way to generate a
ref
?Context: I have generated a TOC from the
h2
s in my markdown file. Now I would like to create a feature that scrolls to the corresponding heading in the document when the TOC is clicked. I readref
is the way to go, so now I am trying to addref
s to allh2
s.I have tried the below, but
ref
is not included int he resulting HTML? ("test" is, so I know the rest is working fine)The text was updated successfully, but these errors were encountered: