feat: allow ignoring node in header (#3331)

pull/3335/head
Enzo Innocenzi 12 months ago committed by GitHub
parent 006fd80095
commit e4bf1e48e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -44,7 +44,8 @@ function serializeHeader(h: Element): string {
if (node.nodeType === 1) { if (node.nodeType === 1) {
if ( if (
(node as Element).classList.contains('VPBadge') || (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 continue
} }

Loading…
Cancel
Save