We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
rust-clippy#7352
1 parent 1feb0d7 commit e5f8927Copy full SHA for e5f8927
util/gh-pages/index.html
@@ -369,16 +369,12 @@ <h2 class="panel-title">
369
linkify: true,
370
typographer: true,
371
highlight: function (str, lang) {
372
- if (lang) {
373
- // This removes additional markdown information like `,ignore`.
374
- let onlyLang = lang.split(",")[0];
375
- if (hljs.getLanguage(onlyLang)) {
376
- try {
377
- return '<pre class="hljs"><code>' +
378
- hljs.highlight(onlyLang, str, true).value +
379
- '</code></pre>';
380
- } catch (__) {}
381
- }
+ if (lang && hljs.getLanguage(docs)) {
+ try {
+ return '<pre class="hljs"><code>' +
+ hljs.highlight(docs, str, true).value +
+ '</code></pre>';
+ } catch (__) {}
382
}
383
384
return '<pre class="hljs"><code>' + md.utils.escapeHtml(str) + '</code></pre>';
0 commit comments