Browse Source

Do not add class prefix to <code> tags

The prism syntax highlighter does not run on inline code blocks so adding the background color doesn’t make sense.
Robert McGuinness 7 years ago
parent
commit
4c37e41166
1 changed files with 1 additions and 1 deletions
  1. 1 1
      index.js

+ 1 - 1
index.js

@@ -93,7 +93,7 @@ module.exports = {
       //
       // Adding "language-" to each element should be sufficient to trigger
       // correct color theme.
-      $('code, pre').each(function() {
+      $('pre').each(function() {
         highlighted = true;
         const $this = $(this);
         $this.addClass('language-');