Let us assume we have an expression in LaTeX form:
var latex =\frac{x}{\frac{y}{y}}
So output required is:
output= (x)/((y)/(y));
I tried out an example as stated in the link: Convert LaTeX to dynamic Javascript function but I am getting the output of the above latex as:
(x)/(\frac{y){y}}`
How can I get the expression converted properly? Thanks in advance!