mirror of
https://github.com/misskey-dev/misskey
synced 2024-11-29 15:28:31 +09:00
Resolve #3524
This commit is contained in:
parent
0f5c737c1a
commit
98fd6de5a1
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
});
|
});
|
||||||
|
Loading…
Reference in New Issue
Block a user