diff --git a/IPython/html/static/notebook/js/mathjaxutils.js b/IPython/html/static/notebook/js/mathjaxutils.js index cf19d55..5472fb7 100644 --- a/IPython/html/static/notebook/js/mathjaxutils.js +++ b/IPython/html/static/notebook/js/mathjaxutils.js @@ -9,6 +9,8 @@ // MathJax utility functions //============================================================================ +"using strict"; + IPython.namespace('IPython.mathjaxutils'); IPython.mathjaxutils = (function (IPython) { @@ -90,8 +92,6 @@ IPython.mathjaxutils = (function (IPython) { // permission. var inline = "$"; // the inline math delimiter - var blocks, start, end, last, braces; // used in searching for math - var math; // stores math until pagedown (Markdown parser) is done // MATHSPLIT contains the pattern for math delimiters and special symbols // needed for searching for math in the text input. @@ -104,7 +104,7 @@ IPython.mathjaxutils = (function (IPython) { // Clear the current math positions and store the index of the // math, then push the math string onto the storage array. // The preProcess function is called on all blocks if it has been passed in - var process_math = function (i, j, pre_process) { + var process_math = function (i, j, pre_process, math, blocks, start, end, last) { var hub = MathJax.Hub; var block = blocks.slice(i, j + 1).join("").replace(/&/g, "&") // use HTML entity for & .replace(/