BUGFIX: highlight standard code blocks

This commit is contained in:
Régis Hanol 2014-03-27 15:17:50 +01:00
parent fe80e02b75
commit d5b1b64bb8

View file

@ -16,7 +16,7 @@ Discourse.SyntaxHighlighting = {
@param {jQuery.selector} $elem The element we want to apply our highlighting to @param {jQuery.selector} $elem The element we want to apply our highlighting to
**/ **/
apply: function($elem) { 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 $LAB.script("/javascripts/highlight.pack.js").wait(function() {
return hljs.highlightBlock(e); return hljs.highlightBlock(e);
}); });