From 8143e9e1b4875e9fa35f91b7fc0098c05fcefc64 Mon Sep 17 00:00:00 2001 From: Enzo Innocenzi Date: Thu, 14 Dec 2023 01:56:35 +0100 Subject: [PATCH] feat: allow ignoring node in header --- src/client/theme-default/composables/outline.ts | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/client/theme-default/composables/outline.ts b/src/client/theme-default/composables/outline.ts index 704aaf6a..d44e5074 100644 --- a/src/client/theme-default/composables/outline.ts +++ b/src/client/theme-default/composables/outline.ts @@ -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 }