1 parent d198119 commit f351392Copy full SHA for f351392
1 file changed
assets/nav.js
@@ -123,6 +123,7 @@
123
document.head.appendChild(marker);
124
const dark = document.body.classList.contains('dark-mode');
125
document.querySelectorAll('.syntax-block, .impl-block, pre#code-pre').forEach(el => {
126
+ el.style.display = 'none'; // hide original immediately
127
if (!el.parentNode) return;
128
const code = (el.tagName === 'PRE' ? el.textContent : el.innerHTML
129
.replace(/</g, '<').replace(/>/g, '>').replace(/&/g, '&')).trim();
0 commit comments