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
The plugin does not check for existing id attributes in the markup, only ones created for headers previously. That means the following markup (from a real example):
Allow users to opt-out (or in) on a per-page basis. Ones of the sites I manage had two occurrances of clashing id attributes as a result of adding this plugin, but many pages don't actually need the ids for the headers. It'd be nice if I could opt-in on a per-page basis, so that these issues would be less prevalent.
Alternatively, and I recognize this might be more computationally expensive; check the entire page HTML for id attributes to avoid the conflicts.
The text was updated successfully, but these errors were encountered:
Operating system
macOS Sonoma 14.6.1
Eleventy
3.0.0-beta.1
Describe the bug
The plugin does not check for existing
id
attributes in the markup, only ones created for headers previously. That means the following markup (from a real example):Will output
Solutions
There are two solutions I can think of:
id
attributes as a result of adding this plugin, but many pages don't actually need theid
s for the headers. It'd be nice if I could opt-in on a per-page basis, so that these issues would be less prevalent.id
attributes to avoid the conflicts.The text was updated successfully, but these errors were encountered: