We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent c972033 commit 578c70bCopy full SHA for 578c70b
util/gh-pages/script.js
@@ -140,7 +140,7 @@ function onEachLazy(lazyArray, func) {
140
141
function highlightIfNeeded(elem) {
142
onEachLazy(elem.querySelectorAll("pre > code.language-rust:not(.highlighted)"), el => {
143
- hljs.highlightElement(el)
+ hljs.highlightElement(el.parentElement)
144
el.classList.add("highlighted");
145
});
146
}
0 commit comments