Automattic / Automattic/jquery-anchorify

Prevent duplicates?

Open
#1 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
HTML
Stars
28
Forks
4
PR merge metrics
No merged PRs in 30d

Description

Is there a mechanism for preventing duplicates, so that we don't wind up with multiple matching IDs - Department 1 (h2) > reports (h3), Department 2 (h2) > reports (h3) produces two h3s with ID="reports"?

Contributor guide

No contributing guide indexed for this repository

Research direction

No source file or test is named in the issue. Start at the plugin entry point that generates heading anchors, reproduce the two-department example, and establish how duplicate IDs should be handled; done means the chosen behavior is covered for repeated heading text.

Written by the indexing model from the issue text.

Assessment

Tech stack
jquery
Domain
frontend
Issue type
Feature
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.