mirror of
https://github.com/discourse/discourse.git
synced 2025-02-16 08:15:00 +00:00
BUGFIX: highlight standard code blocks
This commit is contained in:
parent
fe80e02b75
commit
d5b1b64bb8
@ -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);
|
||||
});
|
||||
|
Loading…
x
Reference in New Issue
Block a user