zestedesavoir / zmarkdown

Live demo: https://zestedesavoir.github.io/zmarkdown/
MIT License
224 stars 52 forks source link

[rebber]\begin{array]{l r} breaks the latex #471

Closed artragis closed 1 year ago

artragis commented 1 year ago

When we parse some math operation into latex, the \ may be removed

input

$$
\begin{array}{l r}
  & 45 \\
+ & 218 \\
+ & 800 \\
\hline
= & 1063
\end{array}
$$

Actual result

\[ begin{array}{l r}
  & 45   
+ & 218   
+ & 800  \
\hline
= & 1063
\end{array} \]

Expected result

\[ 
\begin{array}{l r}
  & 45  \\
+ & 218 \\  
+ & 800  \\
\hline
= & 1063
\end{array} \]
gilcot commented 1 year ago

Also check if it's the case with \left and \right

artragis commented 1 year ago

it is possibly related, we can also note that the \\ to say "line return" are not well parsed.

I also made some tests with other environments and got good parsing for

\begin{matrix}
   a & b \\
   c & d
\end{matrix}

this bug is really strange

StaloneLab commented 1 year ago

Fixed in version 11.1.0, thanks for the report @gilcot