From d5b1b64bb838baca3a4c9126a15cb8631ed8c791 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?R=C3=A9gis=20Hanol?= Date: Thu, 27 Mar 2014 15:17:50 +0100 Subject: [PATCH] BUGFIX: highlight standard code blocks --- app/assets/javascripts/discourse/lib/syntax_highlighting.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/app/assets/javascripts/discourse/lib/syntax_highlighting.js b/app/assets/javascripts/discourse/lib/syntax_highlighting.js index 806b8aaa29b..34477c126c2 100644 --- a/app/assets/javascripts/discourse/lib/syntax_highlighting.js +++ b/app/assets/javascripts/discourse/lib/syntax_highlighting.js @@ -16,7 +16,7 @@ Discourse.SyntaxHighlighting = { @param {jQuery.selector} $elem The element we want to apply our highlighting to **/ apply: function($elem) { - $('pre code[class]', $elem).each(function(i, e) { + $('pre code', $elem).each(function(i, e) { return $LAB.script("/javascripts/highlight.pack.js").wait(function() { return hljs.highlightBlock(e); });