typora / typora-issues

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

writing $2$ automatically results to $$ in v.0.11 beta #4530

Closed raylv17 closed 3 years ago

raylv17 commented 3 years ago

Describe the bug A clear and concise description of what the bug is.

To Reproduce Steps to reproduce the behavior: 1) Write '$[number]' to initiate mathmode and then press enter to start newline. Do not close mathmode. 2) In the new line, write $ to close mathmode. 3) Backspace to go back to the previous line. Observe that this will erase everything written within the mathmode and leaves '$$' 4) Now, within the $$ symbols, write 2*space*, observe that this will automatically be erased. This is the buggy behavior. 5) It only works for the number 2 in my case. Writing 3[space] or any other number will not replicate the behavior. Expected behavior A clear and concise description of what you expected to happen.

Screenshots / Screencasts https://youtu.be/7NfrQn4B9LA

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): Windows 10 64bit

Typora Version v0.11

Additional context Add any other context about the problem here.

abnerlee commented 3 years ago

I'm not able to reproduce this, possible to attach a screencast or more details?

raylv17 commented 3 years ago

The problem only occurred in one of the files. It didn't persist for a new file.

abnerlee commented 3 years ago

Possible to attach or share the sample file to hi@typora.io ?

raylv17 commented 3 years ago

more details are added about the issue: included a video to provide a display of the buggy behaviour included steps to replicate the behavior.

abnerlee commented 3 years ago

relates #4536?

abnerlee commented 3 years ago

still happens in 0.11.2?

raylv17 commented 3 years ago

the issue is fixed in v0.11.2. Thank you!

On Fri, Jul 23, 2021 at 8:51 PM AbnerLee @.***> wrote:

still happens in 0.11.2?

— You are receiving this because you modified the open/close state. Reply to this email directly, view it on GitHub https://github.com/typora/typora-issues/issues/4530#issuecomment-885733301, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMUEPQ2YM7IGW6S6XGQGOALTZGFYNANCNFSM5AXJWP3Q .

raylv17 commented 3 years ago

It is fixed in v0.11.2! Thank you!