When converting from JS to PHP the grammar rules for 4 byte UTF-8
chars were converted in a way that makes the code unreachable.
* Remove the unreachable code for now code
Bug: T319521
Change-Id: Icdb3c71bb738e8f55ce190daef0534794de35eec
The SpecialPage MathStatus tried to get the HTML output even if the rendering was not successful. This did lead to logged errors.
* Skip the rest of the tests if the rendering
is not successful.
Bug: T366293
Change-Id: Id7396fcdc1df96fa3c19e36b56068da4aba3d18f
Special:MathShowImage takes a hash as an HTTP GET parameter. Show an error if the hash does not
exist.
Bug: T365112
Change-Id: I7d4a6602b8732b0b00cb9cba5800ba2b2fe5044f
Add the skin-invert class to latex symbols (insert chemical formula and
math formula dialogues) so that they appear legible in night mode. This
is likely the only way we can accomplish this until mathml is fully
rolled out, at which I believe this will no longer be necessary
Bug: T366737
Change-Id: Ia0dfa4ab684f5205d109da7f9aefad927be70eb0
Add MathSvgRenderer to configure if either restbase (default)
or mathoid will be used for SVG rendering.
Change-Id: I2ee67c07ac98b5d27d1709b2a30d881fd0544a93
Changes to the use statements done automatically via script
Addition of missing use statement done manually
Change-Id: Ifcc9113bc1d2cf79d21871abe7652d7ed8dde20a
Previously, we were using div containers to SVG fallback images to
mimic the MathML behaviour. This had unintended side
effects as reported in T182041.
This change uses span containers for both display and inline math
fallback images.
Bug: T182041
Change-Id: I1d563f9f3cba8a10af2665518be6c672de174333
In MathML outer table boarders are represented with the
notation attribute of an menclose element. The inner
boarders are represented by the rowlines attribute
of the mtable element. The rowline element accepts
a space seperated list of row boarders. In LaTeX
the bottom line is represented by a new matrix row
that only contains \hline.
This change discover \hline elements in matrix cells
and then determines if it is in the first or last line.
When it is in the last line, the line is removed to avoid
an empty <mtr /> in the output.
Bug: T366417
Change-Id: I196e0d14a183a63696363f9e3006cf65571dc56c
Originally the parse tree was a binary tree, from that
time matrix element were put into that data structure.
This was partially undone, but not full which leads to some artifacts
in matrix cells.
One of the problem is that due to the binary parse
tree structure the postprocessing did not correctly
identfy \limits.
This change changes reduces nesting from matrix, and regards
matrix instances as two-dimensional TexArrays.
Bug: T362344
Change-Id: I66a31a09f204709a51d6b5c9ecefc083f7ee2d6d
TexArray is an array of tex nodes. To improve
readability and type hinting we make TexArray
iterable.
Change-Id: I5b9b2ca63400400bc399c08445ff911f8e20a0d1