mirror of
https://github.com/misskey-dev/misskey.git
synced 2024-12-25 22:22:51 +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