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

MathJax aligned environment breaks in templates #132

Closed
ebetica opened this issue Sep 9, 2022 · 1 comment
Closed

MathJax aligned environment breaks in templates #132

ebetica opened this issue Sep 9, 2022 · 1 comment
Labels
bug Something isn't working

Comments

@ebetica
Copy link

ebetica commented Sep 9, 2022

Describe the bug
Here's an aligned environment, we expect the double backslash to add a new line (this equation has 2 lines)

$$
\begin{align}
A x^{5} &< x^{5} - 3x^{2} + 10 &< B x^{5} \\
A &< 1 - \frac{3}{x^{3}} + \frac{10}{x^5} &< B
\end{align}
$$

If we add any template to this slide, it appears that the double backslash will be interpreted as a single backslash, and the equation will only display 1 line (4 \ works).

<!-- slide template="[[ANY_TEMPLATE_SEEMS_TO_BREAK_IT_HERE]]" -->
$$
\begin{align}
A x^{5} &< x^{5} - 3x^{2} + 10 &< B x^{5} \\
A &< 1 - \frac{3}{x^{3}} + \frac{10}{x^5} &< B
\end{align}
$$

It's inconsistent, because without the template line, it'll display properly. I think Obsidian requires just 2 backslashes, not 4.

@ebetica ebetica added the bug Something isn't working label Sep 9, 2022
@MSzturc
Copy link
Owner

MSzturc commented Oct 6, 2022

will be fixed in next release

@MSzturc MSzturc closed this as completed Oct 6, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants