typora / typora-issues

Bugs, suggestions or free discussions about the minimal markdown editor — Typora
https://typora.io
1.53k stars 58 forks source link

unable to warp the mathematical formula #4523

Closed zhumingcj closed 3 years ago

zhumingcj commented 3 years ago

Describe the bug can't use "\" to get a newline in the math block

To Reproduce Steps to reproduce the behavior:

  1. simply type two mathematical formula
  2. type "\" between the two mathematical formula

Expected behavior display the two mathematical formula in two lines

Screenshots / Screencasts image

Sample Markdown File Please attach or send us hi@typora.io the sample md file that may reproduce this.

Desktop (please complete the following information):

Typora Version e.g: 0.11

Additional context math-day9.md

abnerlee commented 3 years ago

https://github.com/mathjax/MathJax/issues/2312

Sorry we missed this, their doc says "Currently, automatic line breaking support is missing from version 3", we thought "\" is manual line break...

For workaround, please use \displaylines{x = a + b \\\ y = b + c} before their fix, or \begin{align}2x+y&=5\\y&=-2x+5\end{align} ...

abnerlee commented 3 years ago

BTW, is seems the same behavior in LaTeX, so I wonder if it is counted as a bug.

I'm not a heavy math user, so I'm not sure how other users uses this. If "\" do matters in your workflow, please upvote the issue.

AhmedThahir66 commented 3 years ago

Same problem for me here. I'm afraid I can't use the latest version until mathjax resolves it. I believe Typora should

  1. give an option in the preferences on which version of MathJax to use
  2. should've given a warning about this latest change (as this is a very major change)

I'm going to be rolling back to the previous release.

v 0.10.11 image

v 0.11.0 image

abnerlee commented 3 years ago

We provided an option to enable support of "\" in 0.11.1 by hotfix from Typora side, but in future, we still need fix from MathJax side.