"Jacob S. Gordon" <jacob.as.gor...@gmail.com> writes: > Before going into details, why might you prefer `MathML' for equations > in `HTML'? > > ⁃ It “degrades” gracefully compared to `LaTeX' markup: > ⁃ in the absence of `MathJax', major browsers [support] `MathML' > (`MathML Core' at least),
This is indeed a benefit. On the other hand, it seems that MathML is less reliable compared to MathJax. > ⁃ `MathJax' [supports] `MathML' and provides [accessibility] > [extensions] (this made me rethink my stance on `JS'). What would be the benefit of MathML if MathJax is _also_ loaded? > ⁃ It integrates closely with `HTML': > ⁃ baseline alignment is handled by the browser, > ⁃ “dark mode” works automatically, > ⁃ the math font can be matched to the text through `CSS', > ⁃ math elements can also be styled with `CSS', e.g. colour all > square roots: > > #+begin_src css > msqrt { color: red; } > #+end_src I think it is the same with MathJax? Or am I wrong? > The following is a summary of a few approaches I took and the > challenges I faced. Attached is an `org' file with equations in `TeX' > format gathered from various `MathML' “torture” tests if you want to > try it yourself. Please let me know what you think! I think that I need to ask an important question here: what is your goal? Is it just a curiosity exercise or do you want to improve MathML support in Org? -- Ihor Radchenko // yantar92, Org mode maintainer, Learn more about Org mode at <https://orgmode.org/>. Support Org development at <https://liberapay.com/org-mode>, or support my work at <https://liberapay.com/yantar92>