Skip to content

Commit

Permalink
tag: fix multiple issues grouping (#1997) (#2003)
Browse files Browse the repository at this point in the history
Fix regression where section-specific tags were no longer ignored due to
a change in the HTML structure of article headings.
  • Loading branch information
TollensWP authored Oct 16, 2024
1 parent bbfb4a2 commit a58009e
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/friendlytag.js
Original file line number Diff line number Diff line change
Expand Up @@ -315,7 +315,7 @@ Twinkle.tag.callback = function friendlytagCallback() {

// break out on encountering the first heading, which means we are no
// longer in the lead section
if (e.tagName === 'H2') {
if (e.classList.contains('mw-heading')) {
return false;
}

Expand Down

0 comments on commit a58009e

Please sign in to comment.