renettarenula / anchorific.js

⚓️ Generates anchored headings and nested anchored-based navigations based on header tags
MIT License
138 stars 30 forks source link

Allow multiple anchorifics #30

Open KelvinWong opened 3 years ago

KelvinWong commented 3 years ago

Issue Current implementation of anchorific allow only one anchorific to be created, where in some cases it will be handy if multiple anchorifics are allowed.

Use cases

  1. Set up TOC for all h2, but only set up anchor links for other headings without showing on the TOC.
  2. Have different anchorText or different anchorClass in different headings.
  3. Have a section of the page to show h2 headings only, and a different section of the same page to include all headings.
queenielow commented 3 years ago

Any update on this one @renettarenula ?