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

🐛 Wrong handling of double backslashes and exponents in math equations #43

Open
2 of 6 tasks
AndreiBiziuk opened this issue Oct 17, 2024 · 0 comments
Open
2 of 6 tasks

Comments

@AndreiBiziuk
Copy link

AndreiBiziuk commented Oct 17, 2024

Input data (markdown source)

$$
\begin{cases}
2x_1^2 + x_2^{2} \leq 10 \\
x_1 + 3x_2 \leq 15 \\
x_1, x_2 \geq 0
\end{cases}
$$

Expected Behavior

Equation correctly displayed in preview and in presentation

Current behaviour

$$
\begin{cases}
2x_1^2 + x_2^{2} \leq 10 \\
x_1 + 3x_2 \leq 15 \\
x_1, x_2 \geq 0
\end{cases}
$$

Equation displayed correctly in note preview:

изображение

but not in presentation:

изображение

Note the lack of exponent in (2x_1^2) in first equation

This code displayed correctly in presentation:

$$
\begin{cases}
2x_1^{2} + x_2^{2} \leq 10 \\\\
x_1 + 3x_2 \leq 15 \\\\
x_1, x_2 \geq 0
\end{cases}
$$

Exponents in curly braces and backslashes are doubled.
But this is not displaying right in note preview:

изображение

Steps to reproduce

Create note with provided input data.
Click "Show slide preview"

Which Operating Systems are you using?

  • Android
  • iPhone/iPad
  • Linux
  • macOS
  • Windows

Obsidian Version

1.7.4

Slides Extended Plugin Version

2.1.3

Checks

  • I have tried it in the sandbox vault with only this plugin enabled

Possible solution

Not treat backslashes in equations as escaping and probably other special characters (e.g. ^)

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