From c2eaccd0d2109a6c64cee9fe615e48daaf4eda0e Mon Sep 17 00:00:00 2001 From: Divyansh Singh <40380293+brc-dd@users.noreply.github.com> Date: Mon, 1 Sep 2025 01:46:18 +0530 Subject: [PATCH] fix(theme): avoid use of `:where` in selector list for now x-ref: #4923 --- src/client/theme-default/composables/outline.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/client/theme-default/composables/outline.ts b/src/client/theme-default/composables/outline.ts index d9eda9c1..752ad15b 100644 --- a/src/client/theme-default/composables/outline.ts +++ b/src/client/theme-default/composables/outline.ts @@ -23,7 +23,9 @@ export function getHeaders( range: DefaultTheme.Config['outline'] ): DefaultTheme.OutlineItem[] { const headers = [ - ...document.querySelectorAll('.VPDoc :where(h1,h2,h3,h4,h5,h6)') + ...document.querySelectorAll( + '.VPDoc h1, .VPDoc h2, .VPDoc h3, .VPDoc h4, .VPDoc h5, .VPDoc h6' + ) ] .filter((el) => el.id && el.hasChildNodes()) .map((el) => {