Skip to content

Commit 9fc1ade

Browse files
committed
nav.js: add pre#code-pre selector for example pages
1 parent cf502a7 commit 9fc1ade

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
@@ -122,7 +122,7 @@
122122
marker.id = 'ref-cm-loaded';
123123
document.head.appendChild(marker);
124124
const dark = document.body.classList.contains('dark-mode');
125-
document.querySelectorAll('.syntax-block, .impl-block, .code-block').forEach(el => {
125+
document.querySelectorAll('.syntax-block, .impl-block, .code-block, pre#code-pre, pre.code-pre').forEach(el => {
126126
const code = el.innerHTML
127127
.replace(/&lt;/g, '<').replace(/&gt;/g, '>').replace(/&amp;/g, '&').trim();
128128
const wrap = document.createElement('div');

0 commit comments

Comments
 (0)