diff options
author | johannst <johannst@users.noreply.github.com> | 2023-05-29 20:34:16 +0000 |
---|---|---|
committer | johannst <johannst@users.noreply.github.com> | 2023-05-29 20:34:16 +0000 |
commit | eaad036407c9546be0de27f61745fef4b6856e56 (patch) | |
tree | c270e3fbc87f3b7c9fc25ac60f4f8f611962de5e /book.js | |
parent | 87c538b89ea68cf0c133a9243097ffac646e6739 (diff) | |
download | notes-eaad036407c9546be0de27f61745fef4b6856e56.tar.gz notes-eaad036407c9546be0de27f61745fef4b6856e56.zip |
deploy: d2013ee5952bbcf88906a832748783e372f3a939
Diffstat (limited to 'book.js')
-rw-r--r-- | book.js | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -68,7 +68,7 @@ function playground_text(playground, hidden = true) { } // updates the visibility of play button based on `no_run` class and - // used crates vs ones available on http://play.rust-lang.org + // used crates vs ones available on https://play.rust-lang.org function update_play_button(pre_block, playground_crates) { var play_button = pre_block.querySelector(".play-button"); @@ -179,7 +179,7 @@ function playground_text(playground, hidden = true) { // even if highlighting doesn't apply code_nodes.forEach(function (block) { block.classList.add('hljs'); }); - Array.from(document.querySelectorAll("code.language-rust")).forEach(function (block) { + Array.from(document.querySelectorAll("code.hljs")).forEach(function (block) { var lines = Array.from(block.querySelectorAll('.boring')); // If no lines were hidden, return |