$$ \begin{array}{|c|c|c|} \hline &A&B\\ \hline X&1&2\\ \hline Y&3&4\\ \hline \end{array} $$
Code:
$$
\begin{array}{|c|c|c|} \hline
&A&B\\ \hline
X&1&2\\ \hline
Y&3&4\\ \hline
\end{array}
$$
I've looked everywhere but can't seem to find a fix for this. All the tables I write or see written from others have these protruding lines on the right and on the bottom. In the above table, if you'll notice carefully, just on the right of the fourth vertical line you'll see two small protruding horizontal lines. Similarly, just on the bottom of the fourth horizontal line you'll see two small protruding vertical lines.
I do not believe this is the expected behavior of how tables should be displayed. Will this be fixed? Also, until this is fixed, how do I write neat tables without these protrusions?
Also, I have noticed that this code:
$$
\begin{array}{c|c|c|} \hline
&A&B\\ \hline
X&1&2\\ \hline
Y&3&4\\ \hline
\end{array}
$$
produces zero protruding lines:
$$ \begin{array}{c|c|c|} &A&B\\ \hline X&1&2\\ \hline Y&3&4\\ \hline \end{array} $$
but is missing the top and left vertical lines, which is unacceptable. (Based on this I also guess that the extra protrusion in the original table is due to the presence of the very lines which I removed here)
EDIT: Thanks to Nat for noticing this, if you \Huge
the second table, and under Math Settings, you Scale All Math to 50%, then you'll also observe the same protrusions in it. Interestingly, the protrusions in the first table will become even longer.
box-sizing: inherit;
from body elements made the first table's lines perfect. But it actually adds a little gap to the second table! I am unable to figure this out further. But I will add that this does not appear to be a MathJax bug. $\endgroup$--> Math Settings
,--> Math Renderer
, then switching from the defaultHTML-CSS
toCommon HTML
fixes it. I guess that that points to CSS? $\endgroup$\Huge{}
function,$$ \Huge{ \begin{array}{c|c|c|} &A&B\\ \hline X&1&2\\ \hline Y&3&4\\ \hline \end{array} } $$, then set zoom to 50% ([right-click],--> Math Settings
,--> Scale All Math
,50%
. Actually - weird; this works if the TeX code is put into the answer box below, but it doesn't work when rendered in this comment. Ohh, actually it does work for the comment, just gotta use25%
instead of50%
. $\endgroup$