(expr: ExpressionInput | null | undefined)
| 100 | if (typeof expr === 'number') return expr.toString(); |
| 101 | if (!expr) return ''; |
| 102 | return exprToStringRecursive(expr, 0); |
| 103 | } |
| 104 | |
| 105 | // export function parse(latex: string): string { |
| 106 | // return exprToString(engine.parse(latex)); |
| 107 | // } |
| 108 | |
| 109 | export function evaluate(latex: string): string { |