brucemiller / LaTeXML

LaTeXML: a TeX and LaTeX to XML/HTML/ePub/MathML translator.
http://dlmf.nist.gov/LaTeXML/
Other
957 stars 101 forks source link

\hline in array creates empty row #2359

Open xworld21 opened 6 months ago

xworld21 commented 6 months ago

The following simple array

\[ \begin{array}{c|c}
  a & b \\
  \hline c & d
\end{array} \]

creates an extra empty row with border t, instead of adding border="t" to the cells below (or border="b" to the ones above, whichever is more accurate). Moreover, the empty row does not respect the c|c specifier, in the sense that the vertical border is missing.

I guess that maybe this is done because if there aren't enough many cells, the horizontal line won't span the entire table (?). If that's the case, wouldn't it be better to pad the current (or previous) row with the missing cells? As it is now, LaTeXML creates a rather ugly empty gap. It looks even worse when fed through MathJax. image