cortex-js / compute-engine

An engine for symbolic manipulation and numeric evaluation of math formulas expressed with MathJSON
https://cortexjs.io
MIT License
356 stars 42 forks source link

[FEATURE] MathML Core Parsing #86

Open aMadReason opened 1 year ago

aMadReason commented 1 year ago

Are there any plans to support MathML Core (https://www.w3.org/TR/mathml-core/) as a possible input for MathLive?

Also, sorry if this isn't the right place to put this.

Thanks!

arnog commented 1 year ago

At the moment there are no concrete plans for this, but this is something that could be supported in the future. If someone were interested in contributing this to the project they should get in touch.

Could you share more about your specific use case for this feature?

stefnotch commented 1 year ago

@aMadReason What would be the concrete use-case for this?

In case anyone needs it and wants a relatively simple solution for this in Mathlive, one option would be to intercept a paste event and run the MathML through an off-the-shelf MathML to LaTeX converter. If one just uses the compute engine, then directly running MathML through an off-the-shelf MathML to LaTeX converter should hopefully yield usable results.