diff --git a/static/main.js b/static/main.js index 067930c7a..49dbcc5fd 100644 --- a/static/main.js +++ b/static/main.js @@ -27,7 +27,15 @@ function init() { reprocess(); function reprocess() { - katex.render(input.value, math); + try { + katex.render(input.value, math); + } catch (e) { + if (e.__proto__ == katex.ParseError.prototype) { + console.error(e); + } else { + throw e; + } + } } }