mirror of
https://github.com/slint-ui/slint.git
synced 2025-10-02 06:41:14 +00:00
Fix documentation preview and hightlighting of .60 code with nightly rustdoc
rustdoc changed the html generated. The code used to be in a `<code>`, now it is in a `<pre>` So this should wotk with both stable rust and nightly rust
This commit is contained in:
parent
e24ff2bff4
commit
bdeb64c518
2 changed files with 2 additions and 2 deletions
|
@ -56,7 +56,7 @@
|
|||
const rustDoc = document.querySelector('meta[name="generator"]')?.content == "rustdoc";
|
||||
if (rustDoc) {
|
||||
// Only highlight .60 blocks, leave the others to rustdoc
|
||||
for (dot60Block of document.querySelectorAll("pre code.language-60")) {
|
||||
for (dot60Block of document.querySelectorAll(".language-60")) {
|
||||
hljs.highlightElement(dot60Block)
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue