Skip to content

Commit

Permalink
feat: allow ignoring node in header (#3331)
Browse files Browse the repository at this point in the history
  • Loading branch information
innocenzi committed Dec 14, 2023
1 parent 006fd80 commit e4bf1e4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/client/theme-default/composables/outline.ts
Expand Up @@ -44,7 +44,8 @@ function serializeHeader(h: Element): string {
if (node.nodeType === 1) {
if (
(node as Element).classList.contains('VPBadge') ||
(node as Element).classList.contains('header-anchor')
(node as Element).classList.contains('header-anchor') ||
(node as Element).classList.contains('ignore-header')
) {
continue
}
Expand Down

0 comments on commit e4bf1e4

Please sign in to comment.