react-mathjax-preview
react-mathjax-preview copied to clipboard
Screen readers don't announce exponents correctly
Currently, when a screen reader (specifically Mac VoiceOver, but maybe others too) reads out an equation that contains exponents, it doesn't properly announce the exponents. In the example screenshot, it simply reads out "cos two theta minus sin two theta" where both of the twos are supposed to be exponents.
Is there any way to address this?
Edit: forgot to add screenshot
For reference, here's how the same equation is read by VoiceOver on the MathJax demo page:
@andrewlphilpott thanks for the bug report. I will look at it when I get some free time. Meanwhile you are very welcome to send a PR if you find the problem.
@mehdisadeghi I haven't investigated it a ton, but it may just be an issue with the older version of MathJax. I tested it out a bit and changing it to v3 seemed to fix the problem, but I'm not sure if doing that would cause other issues.
MathJax v3 is not backward compatible so some changes are necessary to make the component work with it. See my other comment please. If you could make it work and render the demo with TeX, asciimath and MathML send a PR!
Ah okay thanks for pointing me to that!