Skip to content

Commit

Permalink
Respect number-sections: false in navigation breadcrumbs
Browse files Browse the repository at this point in the history
Fixes #6184
  • Loading branch information
dragonstyle committed Jul 12, 2023
1 parent afdeacb commit 962af19
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/project/types/website/website-navigation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -543,9 +543,11 @@ function navigationHtmlPostprocessor(
".breadcrumb-item a",
];
for (const sel of sels) {
const el = doc.querySelector(sel);
if (el) {
removeChapterNumber(el);
const nodes = doc.querySelectorAll(sel);
if (nodes !== null) {
for (const node of nodes) {
removeChapterNumber(node as Element);
}
}
}
}
Expand Down

0 comments on commit 962af19

Please sign in to comment.