Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
artragis opened this issue Oct 22, 2022 · 3 comments · Fixed by #472
Closed

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

artragis opened this issue Oct 22, 2022 · 3 comments · Fixed by #472
Labels
semver/bugfix This is a minor backward-compatible fix status/verified This has been checked by a maintainer type/bug This is a problem

Comments

@artragis
Copy link
Member

artragis commented Oct 22, 2022

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
Copy link

gilcot commented Oct 22, 2022

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

@artragis
Copy link
Member Author

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 StaloneLab added type/bug This is a problem semver/bugfix This is a minor backward-compatible fix status/verified This has been checked by a maintainer labels Oct 22, 2022
@StaloneLab StaloneLab added this to the [email protected] milestone Oct 22, 2022
StaloneLab added a commit to StaloneLab/zmarkdown that referenced this issue Oct 22, 2022
@StaloneLab
Copy link
Member

Fixed in version 11.1.0, thanks for the report @gilcot

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
semver/bugfix This is a minor backward-compatible fix status/verified This has been checked by a maintainer type/bug This is a problem
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants