plurimath / plurimath.github.io

Official Plurimath web site
https://www.plurimath.org/
MIT License
0 stars 0 forks source link

Add preview section with vanilla MathML vs MathJax #30

Closed ronaldtse closed 1 week ago

ronaldtse commented 4 months ago

From @suleman-uzair:

It seems like the issue is just with how the Math is shown on different web browsers.

The equation looks right in Firefox but not in Google Chrome.

We’re using MathML without using MathJax Library to show the math in plurimath.org, and it seems like Google Chrome doesn’t fully support it yet.

We use either MathJax or another library in plurimath.org, to show the Math so it looks the same in all browsers.

  1. Google Chrome Screenshot from 2024-02-15 13-22-33

  2. FireFox Screenshot from 2024-02-15 13-27-12

  3. MathJax Screenshot from 2024-02-15 12-38-57

Originally posted by @suleman-uzair in https://github.com/plurimath/plurimath/issues/214#issuecomment-1945641829

ronaldtse commented 4 months ago

We should add two previews for plurimath render output:

suleman-uzair commented 4 months ago

We should add two previews for plurimath render output:

  • vanilla MathML (browser support)
  • MathML rendered using MathJax

@ronaldtse

Will work on it after finalizing current tasks. Should we display both presentations simultaneously (vanilla MathML and MathML using MathJax), or would it be better to incorporate a dropdown menu similar to the one used for language changes?

ronaldtse commented 4 months ago

Should we display both presentations simultaneously (vanilla MathML and MathML using MathJax), or would it be better to incorporate a dropdown menu similar to the one used for language changes?

A dropdown could work. But we need to load MathJax anyway. Maybe use MathJax as the default, and then "native browser rendering" as an option.

ronaldtse commented 1 week ago

This is fixed in #39. Thanks @suleman-uzair !