Skip to content

Commit c2eaccd

Browse files
committed
fix(theme): avoid use of :where in selector list for now
x-ref: #4923
1 parent f0b29d7 commit c2eaccd

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

src/client/theme-default/composables/outline.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,9 @@ export function getHeaders(
2323
range: DefaultTheme.Config['outline']
2424
): DefaultTheme.OutlineItem[] {
2525
const headers = [
26-
...document.querySelectorAll('.VPDoc :where(h1,h2,h3,h4,h5,h6)')
26+
...document.querySelectorAll(
27+
'.VPDoc h1, .VPDoc h2, .VPDoc h3, .VPDoc h4, .VPDoc h5, .VPDoc h6'
28+
)
2729
]
2830
.filter((el) => el.id && el.hasChildNodes())
2931
.map((el) => {

0 commit comments

Comments
 (0)