michal-h21 / make4ht

Build system for tex4ht
132 stars 15 forks source link

'mathml'-option does not ignore \\ in an matrix or array when the following line is empty #93

Closed yalguzaq closed 1 year ago

yalguzaq commented 1 year ago

When compiling

$$\begin{bmatrix}
    T & 0 \\
    0 & 1 \\
\end{bmatrix}$$

with pdflatex or make4ht file.tex, the output is correct as the engine recognizes that after \\ there is nothing filled in. image

Using make4ht markup.tex 'mathml,mathjax' results in image

More generally, why does adding 'mathml' destroy the output so often? Don't they use the same logic?

michal-h21 commented 1 year ago

I hopefully fixed that in the development version of make4ht. It removes empty table rows at the end of MathML tables.

yalguzaq commented 1 year ago

Thanks a lot. I'm closing the issue then. One question though: how do I update to the latest version of make4ht? I am running a web app based on make4ht so I need the latest version on the server.

michal-h21 commented 1 year ago

I should release a new version soon. Or you can install it from make4ht Github, but I don't know how viable it is in your case.