mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-27 11:03:08 +02:00
Resolve #3524
This commit is contained in:
parent
0f5c737c1a
commit
98fd6de5a1
1 changed files with 10 additions and 1 deletions
|
@ -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);
|
||||
}
|
||||
}
|
||||
});
|
||||
|
|
Loading…
Reference in a new issue