typora / typora-issues

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

when frontformatter include lastupdated, the first line cant input chinese #6039

Open cpupg opened 2 months ago

cpupg commented 2 months ago

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

To Reproduce Steps to reproduce the behavior

  1. Create an empty file.
  2. Open the file with typora.
  3. typora will automatically recognize frontformatter by typing -- at the beginning.
  4. Enter lastUpdated.
  5. Move the cursor to the first line of the body (below frontformatter).
  6. Enter Chinese using Microsoft Pinyin.
  7. You can only type the first letter of Chinese Pinyin, then the cursor disappears and the keyboard input is invalid (only in typora),but if u first input an ansii character and then you can input chinese.

Expected behavior you can input normally.

Screenshots / Screencasts

https://github.com/typora/typora-issues/assets/39870481/4f47561e-d1b3-44e6-a393-d64973e77664

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 1.8.10

Additional context Add any other context about the problem here.

when i found this bug, i try it in windows sandbox and reproduce succsessfully.

cpupg commented 2 months ago

typora in the sandbox is the latest version of the installation package under the official website.