CJK: wrong rendering in edit mode for bolded wikilinks

Steps to reproduce

copy this to note:

  • 这是**[[一个]]**测试

Expected result

The part “一个” should be bolded in edit mode, and the part “测试” should’t be bolded.

Actual result

The part “测试” is bolded in edit mode, while the part “一个” isn’t bolded. Meanwhile, it works rightly in preview mode.

Pasted image 20210711012822

Environment

  • Operating system: windows 10

  • Obsidian version: 0.12.5


Additional information

This problem only happens in chinese like input, so I can fix it by adding space, just like this:

  • 这是 **[[一个]]** 测试 → It’s ok

And if I don’t use wikilink, nor the problem appear

  • 这是**一个**测试 → It’s ok

I have closed all third-party plugins and used default css.

I hope I express problem clearly, thanks for your help.

3 Likes

I also have this bug +1

Because English punctuation is usually followed by a space, it can comply with compliant. However, in the Chinese environment, there will be no spaces after punctuation. If I force the addition of spaces, strange spaces will appear between sentences.
Must we fully comply with commonmark? It seems that only preview mode is unique.

**中文使用全角标点,**一

have space
image
without space
image

zero width space is good

Bold failure in Chinese sentence, because of the usage of Chinese punctuation is different from English - Spec - CommonMark Discussion

bold with [[]]:



link is right, but without strong

<> with [[]]:


image
link is wrong

but in preview mode all are right.

OS: win10
Version: 0.13.14
Live Preview mode

Another problem caused by the Chinese punctuation. When editing a checkbox bullet, once I enter the Chinese comma, the next character entered will be moved to the start of the bullet and the checkbox will be degraded to the common bullet.

pHQI49h9qv