Mathpix / mathpix-markdown-it

Markdown rendering + Latex extras (equations, tables, ...), with conversion features, for the scientific community
MIT License
539 stars 45 forks source link

There is no indentation between the equals sign and the matrix #338

Closed vladtimss closed 4 months ago

vladtimss commented 4 months ago

Hi Could you fix or give some advice how fix such case. As we can see on the img there is no indention before matrix and after equals sign. On the other hand i could fix it via styles, but it can influence on other equations and we can face with unwantend behavior

.math-block {
        .MathJax {
            svg {
                g {
                    [data-mml-node='math'] > [data-mml-node='mtable'] {
                        transform: translate(130em, 0);
                    }
                }
            }
        }
    }

[

Снимок экрана 2024-07-19 в 10 38 07

](url)

OlgaRedozubova commented 4 months ago

It's MathJax rendering:

Screenshot 2024-07-19 at 11 30 50

@vladtimss Would using \left. \right. around the matrix help you?

Screenshot 2024-07-19 at 11 25 45

Or adding \quad before the matrix?

Screenshot 2024-07-19 at 11 33 29
vladtimss commented 4 months ago

Would using \left. \right. around the matrix help you?

thanks, i get this solution. in html output there is no such problem. does you have plans to add html output instead of svg?

OlgaRedozubova commented 4 months ago

does you have plans to add html output instead of svg?

We have an open issue for this https://github.com/Mathpix/mathpix-markdown-it/issues/235 But this has not yet been implemented.

The initial and very important task is to update MathJax https://github.com/Mathpix/mathpix-markdown-it/pull/337

Maybe we'll add this feature later

vladtimss commented 4 months ago

does you have plans to add html output instead of svg?

We have an open issue for this #235 But this has not yet been implemented.

The initial and very important task is to update MathJax #337

Maybe we'll add this feature later

many thanks. thinks we can close this issue