(latex: string)
| 28 | } |
| 29 | |
| 30 | function evaluateToJson(latex: string): Expression { |
| 31 | return engine.parse(latex).evaluate()?.toMathJson() ?? 'NULL'; |
| 32 | } |
| 33 | |
| 34 | function NToJson(latex: string): Expression { |
| 35 | // toMathJson() produces a sugared expression, unlike .json |
no test coverage detected