Skip to content

Commit d451f2e

Browse files
author
Peter Bengtsson
authored
Fix CODE_SELECTOR query (github#39865)
1 parent 8401dea commit d451f2e

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/ClientSideHighlightJS.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ const SUPPORTED_LANGUAGES = ['json', 'javascript', 'curl']
2626
// </pre>
2727
//
2828
const CODE_ELEMENTS_PARENT_SELECTOR = '[data-highlight]'
29-
const CODE_SELECTOR = 'div code' || 'pre code'
29+
const CODE_SELECTOR = 'code'
3030

3131
export default function ClientSideHighlightJS() {
3232
const { asPath } = useRouter()

0 commit comments

Comments
 (0)