diff --git a/src/theme/book.js b/src/theme/book.js index 0d71a197..8731880c 100644 --- a/src/theme/book.js +++ b/src/theme/book.js @@ -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,