anytype-kotlin icon indicating copy to clipboard operation
anytype-kotlin copied to clipboard

The issue with Markdown and the Chinese input method [Chinese (Traditional, Taiwan)]

Open eddyhsiao94 opened this issue 9 months ago • 0 comments

Have you read a contributing guide?

  • [x] I have read CONTRIBUTING.md
  • [x] I have searched the existing issues and didn't find any that were similar
  • [x] I have considered creating a pull request with fixes instead of a bug report and want to proceed

Current Behavior

When I try to use "--- + space" to call out a separator line, an issue occurs. Under the Chinese input method [Chinese (Traditional, Taiwan)], after typing two "-" characters, the cursor moves forward, causing the syntax to become "- + space & --", which prevents the separator line from being generated.

A similar issue also happens with "- + >". Typing "->" successfully generates an arrow, but the cursor moves back to the front of the arrow instead of staying behind it. When using "-->", the input fails because after typing two "-", the cursor moves, changing the input from "-->" to ">--".

當我想要使用"--- + 空格"呼叫出分隔線時會產生問題,在中文輸入法下輸入兩個-後游標會向前移動,導致語法會變成"- + 空格 & --"導致沒辦法叫出分隔線。 類似的問題也出現在"- + >"時,使用->可以成功呼叫出箭頭但由標會回到箭頭前面而不是停留在後面,使用"-->"時也會因為輸入了兩個-後游標移動導致失效(輸入-->時會因為游標移動變成>--)。

Expected Behavior

When typing "--- + space," the separator line should appear correctly without causing any cursor movement or syntax issues. Similarly, when typing "->," the arrow should appear with the cursor remaining behind the arrow, and typing "-->" should not result in any cursor movement that alters the input.

Steps To Reproduce

When using Microsoft [Chinese (Traditional, Taiwan)] Input Method, this issue occurs.

Environment

- OS: Windows 11 Home Edition
- Version: 24H2 26100.3194

Anything else?

https://github.com/user-attachments/assets/8ec0db73-3216-4655-bf11-c415f261eb09

In the bottom-right corner of the video, you can see the language input switcher, which displays "中" for Chinese and "英" for English.

eddyhsiao94 avatar Feb 22 '25 04:02 eddyhsiao94