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
Is your feature request related to a problem? Please describe.
Currently, the in-page nav component searches a page for h2 and h3 tags and dynamically builds the nav links based on the content of those tags. It also makes h2-based, created links bold while making h3-based links normal weight.
Describe the solution you'd like
We could offer a way to easily customize the way in-page nav searches for page headings to dynamically build the navigation block. What if a developer only wanted to use h2 tags? e.g.:
data-headings="h2"
If no data- attribute is present, the default one in the JS would be used.