Skip to content

Commit d198119

Browse files
committed
nav.js: fix condition to include example pages
1 parent 169bacf commit d198119

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

assets/nav.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,7 @@
9393
}
9494

9595
// CodeMirror syntax highlighting on reference/example pages
96-
if (document.querySelector('.syntax-block, .impl-block') &&
96+
if (document.querySelector('.syntax-block, .impl-block, pre#code-pre') &&
9797
!document.getElementById('ref-cm-loaded')) {
9898
const CDNJS = 'https://cdnjs.cloudflare.com/ajax/libs/codemirror/5.65.16';
9999
// Preload hints for faster script loading

0 commit comments

Comments
 (0)