-
-
Notifications
You must be signed in to change notification settings - Fork 297
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
Multiline shortcut produces invalid LaTeX #2000
Comments
Fixed with e992548 |
This is still an issue on latest version. |
I cannot reproduce it. Can you check you are using 0.95.0? (On the MathLive Demo page the version is indicated at the bottom of the page). I followed the steps in the issue report. Is there something missing? When you say "reproducible on external platform", what do you mean? |
If you paste the above LaTeX on the demo page, it still fails to render with the same failure points as pictured. I was also able to replicate from scratch the same bug on the demo page. Unless I'm misunderstanding the fix, the environment shouldn't have changed right? |
What OS/browser are you using? And so that we’re on the same page, the issue occurs not when following the steps in the original report, but if you copy |
Yeah; I followed the same steps as before. Just to clarify with a video: Screen.Recording.2023-07-06.at.9.00.50.am.movChrome 114.0.5735.198 (Official Build) (arm64) |
As for why pasting is relevant: this same issue occurs when you programatically load in the LaTeX via setValue or otherwise (so for my usage, I have an editor, which when previewed will render the LaTeX incorrectly as above) |
Ah, OK, I get it now. I thought you were copying and pasting from the mathfield, which was broken but is working now. I thought that was the issue. There is indeed another issue when pasting LaTeX copied from elsewhere (or when setting the value directly). Thank you, this helps. |
No, thank you! Sorry for the ambiguity haha |
Description
When using the inline shortcut for inserting multiline content, invalid MathLive content is produced.
Steps to Reproduce
a
. Then use the inline shortcut e.g. Mod-Enter and typeb
.\begin{lines}a\\ b\end{lines}
)Associated screenshots:
Before:

After:

This is reproducible on an external platform too.
Actual Behavior
Invalid MathLive LaTeX is produced.
Expected Behavior
The LaTeX should be able to be re-used within the MathLive editor.
Environment
MathLive version
0.94.6
The text was updated successfully, but these errors were encountered: