Fix Keep Markup plugin incorrect highlighting
diff --git a/plugins/keep-markup/prism-keep-markup.js b/plugins/keep-markup/prism-keep-markup.js
index 9038ed0..fff0b88 100644
--- a/plugins/keep-markup/prism-keep-markup.js
+++ b/plugins/keep-markup/prism-keep-markup.js
@@ -23,7 +23,7 @@
} else if(child.nodeType === 3) { // text
if(!firstWhiteSpaces) {
// We need to ignore the first white spaces in the code block
- child.data = child.data.replace(/^(?:\r?\n|\r)/, '');
+ child.data = child.data.replace(/^(?:\r\n|\r)/, '');
firstWhiteSpaces = true;
}
pos += child.data.length;
@@ -94,4 +94,4 @@
});
}
});
-}());
\ No newline at end of file
+}());