Page MenuHomePhabricator

Fix texvcjs grammar for X^{2+}
Closed, ResolvedPublic

Description

<chem>Fe^{2+} + H2O -> X</chem> renders wrongly. It seems to me that X^{2+} is detected as "unusual" and the fallback logic (omitting all spaces) is applied.
<chem>Fe^2+ + H2O -> X</chem> works fine. I double checked, X^{2+} is definitely covered by the strict simplified mhchem grammar.

Event Timeline

As of today warnings for fallback rendering are emitted. Fallback rendering is not used in any of the cases.

You can check it on https://en.wikipedia.org/api/rest_v1/#/Math/post_media_math_check__type_

curl -X POST "https://en.wikipedia.org/api/rest_v1/media/math/check/chem" -H  "accept: application/json" -H  "Content-Type: multipart/form-data" -F "q=\ce {Fe^{2+} + H2O -> X}//2019-06-06"

Please reopen if anything is still broken.