diff --git a/mathdown.js b/mathdown.js index 5ab0e1f..8aa6d74 100644 --- a/mathdown.js +++ b/mathdown.js @@ -182,8 +182,6 @@ function setupEditor(editor) { updateTitle(); } }); - - CodeMirror.hookMath(editor, MathJax); } // Firepad @@ -219,6 +217,7 @@ function setupFirepad(editor, firepad) { // Queuing this allows text to appear before math. MathJax.Hub.Queue(function() { + CodeMirror.hookMath(editor, MathJax); editor.renderAllMath(); }); });