From 98fd6de5a1734e291eea3975f43396014c01a0f7 Mon Sep 17 00:00:00 2001 From: Aya Morisawa Date: Thu, 27 Dec 2018 21:07:44 +0900 Subject: [PATCH] Resolve #3524 --- .../app/common/views/components/formula-core.vue | 11 ++++++++++- 1 file changed, 10 insertions(+), 1 deletion(-) diff --git a/src/client/app/common/views/components/formula-core.vue b/src/client/app/common/views/components/formula-core.vue index 930f16b471..8a4adcb7e3 100644 --- a/src/client/app/common/views/components/formula-core.vue +++ b/src/client/app/common/views/components/formula-core.vue @@ -15,7 +15,16 @@ export default Vue.extend({ }, computed: { compiledFormula(): any { - return katex.renderToString(this.formula); + // let s: string; + // try { + // s = katex.renderToString(this.formula); + // } catch(e) { + // if () + // } + // return s; + return katex.renderToString(this.formula, { + throwOnError: false + } as any); } } });