How can I use your library to get the original expression (without LaTeX)? And is it possible at the current time? #486
Answered
by
ForNeVeR
TheDIMONDK
asked this question in
Q&A
-
var latex = "\\color[HTML]{82C17A}{\\frac{x^2 + y^2}{z}}";
// ... -> (x^2 + y^2)/z |
Beta Was this translation helpful? Give feedback.
Answered by
ForNeVeR
Apr 5, 2024
Replies: 1 comment 1 reply
-
If you are interested in extracting some mathematical value from the markup, then sadly nope, we cannot do this at the moment. It should be possible to expose the parser internals to convert I think that the best way to go would be to just fork the parser and introduce the required functionality. |
Beta Was this translation helpful? Give feedback.
1 reply
Answer selected by
TheDIMONDK
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If you are interested in extracting some mathematical value from the markup, then sadly nope, we cannot do this at the moment.
It should be possible to expose the parser internals to convert
\frac{x^2 + y^2}{z}
to something likefrac(sup("x", "2"), sup("y", "2"), "z")
, but so far this is not one of the project's purposes.I think that the best way to go would be to just fork the parser and introduce the required functionality.