Merge pull request #182 from integer32llc/hljs-class

Add hljs class to all code blocks, regardless of highlighting
This commit is contained in:
Mathieu David 2016-11-14 07:48:07 +01:00 committed by GitHub
commit c986b3afc4
1 changed files with 4 additions and 0 deletions

View File

@ -23,6 +23,10 @@ $( document ).ready(function() {
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,
NEXT_KEY: 39