diff options
author | Filipa Lacerda <filipa@gitlab.com> | 2018-01-25 21:11:03 +0300 |
---|---|---|
committer | Filipa Lacerda <filipa@gitlab.com> | 2018-01-25 21:11:03 +0300 |
commit | ce2e51ae7b088e1527bd32e9ee7f93a1af41b4dc (patch) | |
tree | d7f9aacf4e4827a3723075c07c3452891e42e4a7 /app | |
parent | 26c4dea7ad37f5680ada812e212274ebd8473a78 (diff) | |
parent | 2efadce5e77fb0b17ea0e859ae5359cd63c7f711 (diff) |
Merge branch 'katex-throwOnError' into 'master'
Disable throwOnError in KaTeX to reveal user where is the problem
See merge request gitlab-org/gitlab-ce!16684
Diffstat (limited to 'app')
-rw-r--r-- | app/assets/javascripts/render_math.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/app/assets/javascripts/render_math.js b/app/assets/javascripts/render_math.js index a759992cd54..15205d8a4e2 100644 --- a/app/assets/javascripts/render_math.js +++ b/app/assets/javascripts/render_math.js @@ -18,7 +18,7 @@ function renderWithKaTeX(elements) { const display = $this.attr('data-math-style') === 'display'; try { - katex.render($this.text(), mathNode.get(0), { displayMode: display }); + katex.render($this.text(), mathNode.get(0), { displayMode: display, throwOnError: false }); mathNode.insertAfter($this); $this.remove(); } catch (err) { |