glossarist / glossarist-desktop

Glossarist Desktop
https://www.glossarist.org
GNU General Public License v3.0
4 stars 6 forks source link

Upgrade to MathJax 3 #105

Open strogonoff opened 4 years ago

strogonoff commented 4 years ago

There doesn’t seem to be a ready-made React adapter for MathJax 3. We might write our own.

ronaldtse commented 4 years ago

Go for it!

strogonoff commented 4 years ago

Ah… MathJax 3 appears to not support Asciimath fully yet. @ronaldtse could you remind the big picture around math input? We want to allow entering Asciimath, or we prefer MathML?

strogonoff commented 4 years ago

Or maybe TeX/LaTeX math?

ronaldtse commented 4 years ago

We should allow entering MathML, AsciiMath and Latex math.

strogonoff commented 4 years ago

If we have a way to do Asciimath -> MathML conversion, we can use MathJax 3 to display math.

Otherwise in meantime it might be best to stick to MathJax 2 until they implement that conversion in 3 out of the box.

Generally as far as math entry goes we could offer pluggable modes via adapters: MathType (for those with license), TeX and Asciimath.

In case of MathType I suppose we would store MathML directly. In case of Asciimath or TeX I guess we must store respective Asciimath and TeX markup and convert at build time.

Unfortunately this means if user chooses one mode switching to another would require some migration logic.

On 25 Aug 2020, at 5:34 PM, Ronald Tse notifications@github.com wrote:

 We should allow entering MathML, AsciiMath and Latex math.

— You are receiving this because you were assigned. Reply to this email directly, view it on GitHub, or unsubscribe.