geolexica / geolexica-server

Generalized backend for Geolexica sites
2 stars 1 forks source link

Mathematical formulae should be rendered with MathJax #109

Closed skalee closed 4 years ago

skalee commented 4 years ago

We want to render MathML with MathJax.

Although modern browsers are capable of rendering MathML themselves, this support is sometimes buggy or feature-incomplete. See following example taken from IEV concept 103-01-02 (mind parenthesis and both horizontal and vertical positioning):

Firefox
Safari

For reference, actual HTML and MathML:

<p>An example of a functional of the function <math><mi>f</mi></math>(<math><mi>t</mi></math>) is <math><msubsup><mo>∫</mo><msub><mi>t</mi><mn>2</mn></msub><msub><mi>t</mi><mn>1</mn></msub></msubsup><mi>f</mi><mfenced open="(" close=")"><mi>t</mi></mfenced><mi>d</mi><mi>t</mi></math>.</p>

TODO

skalee commented 4 years ago

For reference, thanks to MathJax now it renders as follows:

Firefox Zrzut ekranu 2020-06-28 o 16 29 59
Safari Zrzut ekranu 2020-06-28 o 16 30 13
ronaldtse commented 4 years ago

Thanks @skalee !