mugiwara85 / CodeblockCustomizer

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

[Bug] When inputting Chinese, the link disappears #57

Closed doit132 closed 4 months ago

doit132 commented 9 months ago

Link does not disappear

I am using C language without annotations

Animation demonstration

动画

Link disappear

I am using C language with annotations

Animation demonstration

动画

mugiwara85 commented 9 months ago

Send me the whole text the code block contains

doit132 commented 9 months ago

Send me the whole text the code block contains

I’m interested in Obsidian

First of all, tell me bit about wha ote-taking fds wha ote-taking fdsfds fsd -> [[No prior experience|I have no prior experience]] ff分


Official Help Site

输入 [[From standard note-taking]] 输入

What is this place?

This is a sandbox vault in which you can test various functionality of Obsidian.

[!Warning]
Your changes will not be saved, so please don't take actual notes in this vault.

[!Note] Beta vault - contributions are welcome!
This sandbox vault is in beta!

If you spot a typo or a mistake, feel free to submit a pull request here .

fjdkjfk
mugiwara85 commented 9 months ago

I am pretty sure, that this has something to do with your input method as last time, because it works for me: image

How are you inputting chineese text? Are you on Windows? Did you add a chineese keyboard layout? Are you using a software for that? Or how? Provide details so I can reproduce the issue.

doit132 commented 9 months ago

you should add //,please refer https://github.com/mugiwara85/CodeblockCustomizer/issues/57#issue-1918639663 link disappear head

mugiwara85 commented 9 months ago

I did. Still works:

image

doit132 commented 9 months ago

This is too strange. I have changed multiple Chinese input software and killed all software backends that may affect input behavior, but there is still a phenomenon of link disappearance

Here is the test library I am using Obsidian Sandbox.zip

I am using a Windows system, The version number is 22H2

Tested input method software includes: Baidu Input Method, Xiaolanghao Input Method, Palm Input Method, and iFlytek Input Method

mugiwara85 commented 9 months ago

Hmm, interesting. I opened the Sandbox you sent, but it is still displayed correctly: image

doit132 commented 9 months ago

If I enter English after the link, it will not disappear. Once I enter Chinese after the link and go to the screen, the link will disappear

mugiwara85 commented 9 months ago

but you enter Chinese with your input method, right? If you copy from somewhere chinese text, and paste it, then it will work probably. That's why I say it has to do something with you input method.

mugiwara85 commented 9 months ago

Can you send maybe the html of that line? Maybe we can see there, what's happening

doit132 commented 9 months ago

Can you send maybe the html of that line? Maybe we can see there, what's happening 你能把这行的 html 发给我吗?也许我们能看到那里发生了什么

how to get html

mugiwara85 commented 9 months ago

press CTRL+Shift+I and navigate to that line

doit132 commented 9 months ago

image

mugiwara85 commented 9 months ago

yes, that one, but copy it and paste it here.

doit132 commented 9 months ago
<div class="codeblock-customizer-line cm-active HyperMD-codeblock HyperMD-codeblock-bg cm-line" codeblockid="1" style=""><span class="codeblock-customizer-line-number" contenteditable="false"><span class="codeblock-customizer-line-number-element">1</span></span><img class="cm-widgetBuffer" aria-hidden="true"><span class="cm-hmd-codeblock" spellcheck="false">// 输入 <img class="cm-widgetBuffer" aria-hidden="true"><span contenteditable="false"></span><img class="cm-widgetBuffer" aria-hidden="true"><img class="cm-widgetBuffer" aria-hidden="true"><a class="cm-hmd-internal-link" contenteditable="false"><span class="cm-underline" data-path="From standard note-taking">From standard note-taking</span></a><img class="cm-widgetBuffer" aria-hidden="true"><img class="cm-widgetBuffer" aria-hidden="true"><span contenteditable="false"></span><img class="cm-widgetBuffer" aria-hidden="true"> </span></div>
doit132 commented 9 months ago

It may really be an input method software issue, and I tested several input methods and found that one of them did not cause this problem

mugiwara85 commented 9 months ago

It probably is. If you give me a link for one of your input method software then I can download it, and have a look at it.

doit132 commented 9 months ago

https://github.com/rime/weasel/releases/tag/0.15.0 image

doit132 commented 4 months ago

Now I have changed input method to sogou, this question is no longed appear