You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This fixes the buttons that expand/collapse all the lints in the list,
it also makes code block syntax highlighting only happen when the
specific lint enters the viewport since highlighting them all at once
was fairly heavy
There's also a few miscellaneous inline event handler removals
`script.js` and highlightjs are now loaded with `defer` so that the
download can start earlier
Also fixes#14048, we
were calling highlight on the `pre` in `<pre><code>...</code></pre>` but
highlightjs wants us to call it on the `code` element
changelog: none
Description
Looking through the lints descriptions on https://rust-lang.github.io/rust-clippy/master/index.html I’ve noticed some inconsistent highlighting… e.g. very clearly in the
Example
here:Looking at the html, it seems the upper code example was highlighted as “SCSS” somehow?
Searching the full page shows this happening quite a few times, i.e. in multiple places.
My best guess would be: Maybe these code examples just run on
highlight.js
’s language autodetection?The text was updated successfully, but these errors were encountered: