File tree 2 files changed +8
-4
lines changed
2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 15
15
< title > Clippy Lints</ title >
16
16
17
17
< link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/twitter-bootstrap/3.3.6/css/bootstrap.min.css "/>
18
- < link rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5.0/styles/github.min.css "/>
18
+ < link id ="githubLightHighlight " rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/github.min.css " disabled ="true " />
19
+ < link id ="githubDarkHighlight " rel ="stylesheet " href ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6.0/styles/github-dark.min.css " disabled ="true " />
19
20
20
21
<!-- The files are not copied over into the Clippy project since they use the MPL-2.0 License -->
21
22
< link rel ="stylesheet " href ="https://rust-lang.github.io/mdBook/css/variables.css "/>
@@ -561,8 +562,8 @@ <h2 class="panel-title">
561
562
</ a >
562
563
563
564
< script src ="https://cdnjs.cloudflare.com/ajax/libs/markdown-it/12.3.2/markdown-it.min.js "> </ script >
564
- < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5 .0/highlight.min.js "> </ script >
565
- < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.5 .0/languages/rust.min.js "> </ script >
565
+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6 .0/highlight.min.js "> </ script >
566
+ < script src ="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.6 .0/languages/rust.min.js "> </ script >
566
567
< script src ="https://cdnjs.cloudflare.com/ajax/libs/angular.js/1.4.12/angular.min.js "> </ script >
567
568
< script src ="script.js "> </ script >
568
569
</ body >
Original file line number Diff line number Diff line change 7
7
if ( lang && hljs . getLanguage ( lang ) ) {
8
8
try {
9
9
return '<pre class="hljs"><code>' +
10
- hljs . highlight ( lang , str , true ) . value +
10
+ hljs . highlight ( str , { language : lang , ignoreIllegals : true } ) . value +
11
11
'</code></pre>' ;
12
12
} catch ( __ ) { }
13
13
}
@@ -365,6 +365,9 @@ function setTheme(theme, store) {
365
365
366
366
document . getElementsByTagName ( "body" ) [ 0 ] . className = theme ;
367
367
368
+ document . getElementById ( "githubLightHighlight" ) . disabled = enableNight || ! enableHighlight ;
369
+ document . getElementById ( "githubDarkHighlight" ) . disabled = ! enableNight && ! enableAyu ;
370
+
368
371
document . getElementById ( "styleHighlight" ) . disabled = ! enableHighlight ;
369
372
document . getElementById ( "styleNight" ) . disabled = ! enableNight ;
370
373
document . getElementById ( "styleAyu" ) . disabled = ! enableAyu ;
You can’t perform that action at this time.
0 commit comments