suneditor
Advanced tools
Comparing version 2.43.13 to 2.43.14
{ | ||
"name": "suneditor", | ||
"version": "2.43.13", | ||
"version": "2.43.14", | ||
"description": "Pure JavaScript based WYSIWYG web editor", | ||
@@ -5,0 +5,0 @@ "author": "JiHong.Lee", |
@@ -141,4 +141,10 @@ 'use strict'; | ||
_renderer: function (exp) { | ||
const katex = this.options.katex; | ||
return katex.src.renderToString(exp, {throwOnError: true, displayMode: true}); | ||
let result = ''; | ||
try { | ||
result = this.options.katex.src.renderToString(exp, {throwOnError: true, displayMode: true}); | ||
} catch(error) { | ||
result = '<span class="se-math-katex-error">' + error + '</span>'; | ||
console.warn('[SUNEDITOR.math.Katex.error] ', error); | ||
} | ||
return result; | ||
}, | ||
@@ -145,0 +151,0 @@ |
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
Sorry, the diff of this file is not supported yet
Sorry, the diff of this file is too big to display
3918920
28365