mirror of
https://github.com/hotomoe/hotomoe
synced 2024-12-05 02:08:14 +09:00
Resolve #3524
This commit is contained in:
parent
0f5c737c1a
commit
98fd6de5a1
@ -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 New Issue
Block a user