diff --git a/src/highlight.js b/src/highlight.js index ac44a1e115..48d792e82d 100644 --- a/src/highlight.js +++ b/src/highlight.js @@ -526,6 +526,7 @@ const HLJS = function(hljs) { // first handler (when ignoreIllegals is true) if (match.type === "illegal" && lexeme === "") { // advance so we aren't stuck in an infinite loop + modeBuffer += "\n"; return 1; }