mirror of
https://github.com/rust-lang/mdBook
synced 2024-12-14 14:52:37 +00:00
Merge pull request #182 from integer32llc/hljs-class
Add hljs class to all code blocks, regardless of highlighting
This commit is contained in:
commit
c986b3afc4
1 changed files with 4 additions and 0 deletions
|
@ -22,6 +22,10 @@ $( document ).ready(function() {
|
|||
$('code').each(function(i, block) {
|
||||
hljs.highlightBlock(block);
|
||||
});
|
||||
|
||||
// Adding the hljs class gives code blocks the color css
|
||||
// even if highlighting doesn't apply
|
||||
$('code').addClass('hljs');
|
||||
|
||||
var KEY_CODES = {
|
||||
PREVIOUS_KEY: 37,
|
||||
|
|
Loading…
Reference in a new issue