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

Math issues #870

Open
raffaeler opened this issue May 7, 2021 · 1 comment
Open

Math issues #870

raffaeler opened this issue May 7, 2021 · 1 comment

Comments

@raffaeler
Copy link

I found some issues in math rendering:

  1. Inline math (using $ ... $)
    The following expression is not rendered because of the final whitespace before the closing $:
$\sum $

This other is correctly rendered:

$\sum$
  1. Default array alignment
    The following is not rendered because the l of the left alignment is missing.
    In Typora (which uses Katex and Pandoc as well) the \begin{array}{} is assumed to be "left" by default. There is no reason for Typora to mangle the Katex markup. If you are pre-processing the Katex markup for some reasons, there may be a bug there, otherwise it can be the online rendering service (but I am not subscribed to their services therefore I can't open an issue).
\begin{array}{}
1 & 1 \\ 0 & 0
\end{array}

This other is correctly rendered:

\begin{array}{l}
1 & 1 \\ 0 & 0
\end{array}
@raffaeler
Copy link
Author

Another very strange use-case that renders in other viewers.

This is not rendered:

$$
\sum_k^\phantom{}
$$

This is rendered:

$$
\sum_k^{\phantom{}}
$$

The braces are not required for a single element as shown by this other example which is rendered correctly:

$$
\sum_k^\alpha
$$

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant