Suppose we have an expression in the form of LaTeX:
var latex =\frac{x}{\frac{y}{y}}
Thus, the required result:
output= (x)/((y)/(y));
I tried the example provided in the link: Convert LaTeX to a dynamic Javascript function , but I get the output of the above latex as:
(x)/(\frac{y){y}}`
How can I convert the expression correctly? Thanks in advance!
source share