xaml-math
xaml-math copied to clipboard
MathML input
It might be nice to add support for MathML parsing as an alternative to TeX input. Just a thought. This is certainly not a priority, in my mind.
If you are still interested in that, could you please check out my MathMktoTexFormula.cs code in my fork.
@B3zaleel Y u no use StringBuilder and use string directly D:
I didn't think about the performance when I started because I thought I would use it for a handful of elements. However, I'm changing some parts of it to use string builder but not all of then can be used. Eg. The index of mroot comes at the end so the first element and it's children need to be stored separately and they are added once we've gotten the base and index.
I've taken a very quick look at the code and I don't think that the string/StringBuilder is a big issue there. We could always fix it before merging, the changes required are trivial. We'll need to discuss a proper API for MathML parser though. For now I've no useful ideas.