riboseinc / jekyll-asciimath

Jekyll plugin for rendering AsciiMath syntax within posts
MIT License
0 stars 1 forks source link

Switch to AsciiMath 2.0 #2

Open skalee opened 4 years ago

skalee commented 4 years ago

AsciiMath 2.0 has been released recently: https://github.com/asciidoctor/asciimath/blob/master/CHANGELOG.adoc#200. How about switching to it in this gem?

There are breaking changes. Roughly more than 20% and less than 50% of all concepts are affected.

For example on https://iev-staging.geolexica.org/concepts/103-01-07/ ("functional relation"):

<math><mi>F</mi><mfenced open="(" close=")"><mrow><mi>x</mi><mi>,</mi><mi>y</mi><mi>,</mi><mi>z</mi></mrow></mfenced><mo>=</mo><mn>0</mn></math> is a functional relation…

which renders to:

Zrzut ekranu 2020-05-25 o 20 41 09

will become:

<p><math><mi>F</mi><mrow><mo>(</mo><mrow><mi>x</mi><mi>,</mi><mi>y</mi><mi>,</mi><mi>z</mi></mrow><mo>)</mo></mrow><mo>=</mo><mn>0</mn></math> is a functional relation…

which renders to:

Zrzut ekranu 2020-05-25 o 20 41 19

This looks like an improvement though (see: https://github.com/asciidoctor/asciimath/issues/26).

@ronaldtse @strogonoff any comments?

skalee commented 4 years ago

After investigation:

There may be some undetected changes because my research was quite simplistic. Anyway, I believe that these are bugfixes rather than anything else and that we should upgrade.