mugiwara85 / CodeblockCustomizer

Codeblock Customizer plugin for Obsidian
MIT License
147 stars 7 forks source link

[Bug] When inputting Chinese, The live view will be crashed #69

Open 3dot141 opened 6 months ago

3dot141 commented 6 months ago

https://github.com/mugiwara85/CodeblockCustomizer/assets/19152476/6a8c7c75-53a5-41dc-b3a3-2d36eefa6b30

just like the video, when i use Shuangpin or "微信输入法" to input language like "java" after “``” if i usecaplocks` to change from "Chinese Input Source" to "ABC", the issue will appear.

mugiwara85 commented 6 months ago

Someone already had a similar problem with chineese input method. I still think that this is somehow related to the input method, not the plugin, since the plugin simply takes the text. The input method probably inserts some special character. This problem is on my list, but it takes some time to fix this (as this problem does not originate from the plugin).

3dot141 commented 5 months ago

but i use mac's default chinese input method, this issue still repete

mugiwara85 commented 5 months ago

but i use mac's default chinese input method, this issue still repete

Yeah, but I don't speak chinese. You have to tell me exactly how you are doing what you are doing. Which siftware are you using so I can reproduce it. I will definitely look at it. It is on my list. I haven't forgotten it.

doit132 commented 4 months ago

Someone already had a similar problem with chineese input method. I still think that this is somehow related to the input method, not the plugin, since the plugin simply takes the text. The input method probably inserts some special character. This problem is on my list, but it takes some time to fix this (as this problem does not originate from the plugin).

That person is me. I used to use the rime input method on Windows systems, but now I no longer use this input method and have switched to Sogou input method

I haven't encountered this problem again now

@3dot141 You can try this input method, please test it again in the sandbox library