From e3f2eb8452e66747873ac0896cf8f50b270bbd41 Mon Sep 17 00:00:00 2001 From: MinRK Date: Wed, 18 Sep 2013 23:12:06 -0700 Subject: [PATCH] no highlight if no language specified --- IPython/html/static/notebook/js/main.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/IPython/html/static/notebook/js/main.js b/IPython/html/static/notebook/js/main.js index 4f3b72b44..ec25f2342 100644 --- a/IPython/html/static/notebook/js/main.js +++ b/IPython/html/static/notebook/js/main.js @@ -99,6 +99,10 @@ function (marked) { tables: true, langPrefix: "language-", highlight: function(code, lang) { + if (!lang) { + // no language, no highlight + return code; + } var highlighted; try { highlighted = hljs.highlight(lang, code, false);