This commit is contained in:
Aya Morisawa 2018-12-27 21:07:44 +09:00
parent 0f5c737c1a
commit 98fd6de5a1
No known key found for this signature in database
GPG Key ID: 3E64865D70D579F2
1 changed files with 10 additions and 1 deletions

View File

@ -15,7 +15,16 @@ export default Vue.extend({
}, },
computed: { computed: {
compiledFormula(): any { 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);
} }
} }
}); });