Skip to content

Commit be2cae7

Browse files
committed
Ensure that .highlighted class is added to code block, so code isn't highlighted twice.
1 parent d65cafc commit be2cae7

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

dist/jquery.syntax.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ Syntax.Brush.prototype.process = function(text, matches, options) {
969969
var lines = top.splitLines();
970970

971971
var html = document.createElement('code');
972-
html.className = 'syntax';
972+
html.className = 'syntax highlighted';
973973

974974
for (var i = 0; i < lines.length; i += 1) {
975975
var line = lines[i].reduce(null, function (container, match) {

source/jquery.syntax.core.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -969,7 +969,7 @@ Syntax.Brush.prototype.process = function(text, matches, options) {
969969
var lines = top.splitLines();
970970

971971
var html = document.createElement('code');
972-
html.className = 'syntax';
972+
html.className = 'syntax highlighted';
973973

974974
for (var i = 0; i < lines.length; i += 1) {
975975
var line = lines[i].reduce(null, function (container, match) {

0 commit comments

Comments
 (0)