# CJK: wrong rendering in edit mode for bolded wikilinks

**URL:** <https://forum.obsidian.md/t/cjk-wrong-rendering-in-edit-mode-for-bolded-wikilinks/20634>\
**Category:** Bug reports\
**Tags:** not-intuitive, valuable, repro, editor-parser, live-preview\
**Created:** [July 11, 2021, 5:04am UTC](https://forum.obsidian.md/t/cjk-wrong-rendering-in-edit-mode-for-bolded-wikilinks/20634 "2021-07-11T05:04:47Z")\
**Posts on this page:** 9\
**Page:** 1

<div class="post-metadata">

**Author:** ![Greepp](https://forum.obsidian.md/user_avatar/forum.obsidian.md/greepp/32/16990_2.png) [@Greepp](https://forum.obsidian.md/u/Greepp)\
**Post date:** [July 11, 2021, 5:04am UTC](https://forum.obsidian.md/t/cjk-wrong-rendering-in-edit-mode-for-bolded-wikilinks/20634/1 "2021-07-11T05:04:47Z")

</div>

### 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](https://forum.obsidian.md/uploads/default/original/3X/3/5/354084e3b9165f3c576cdf1919a1dd45f437f471.png)

### 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.

---

<div class="post-metadata">

**Author:** ![BrandonSLockey](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/b/67e7ee/32.png) [@BrandonSLockey](https://forum.obsidian.md/u/BrandonSLockey)\
**Post date:** [November 6, 2021, 11:11am UTC](https://forum.obsidian.md/t/cjk-wrong-rendering-in-edit-mode-for-bolded-wikilinks/20634/2 "2021-11-06T11:11:35Z")

</div>

I also have this bug +1

---

<div class="post-metadata">

**Author:** ![AuTa](https://forum.obsidian.md/user_avatar/forum.obsidian.md/auta/32/20520_2.png) [@AuTa](https://forum.obsidian.md/u/AuTa)\
**Post date:** [October 4, 2021, 4:15am UTC](https://forum.obsidian.md/t/cjk-wrong-rendering-in-edit-mode-for-bolded-wikilinks/20634/3 "2021-10-04T04:15:15Z")

</div>

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](https://forum.obsidian.md/uploads/default/original/3X/b/e/be49219ba840344af14835b324446a5901706e41.png)  
without space  
 ![image](https://forum.obsidian.md/uploads/default/original/3X/4/0/40a859c489d1310a5fddc26e12f9faeba6bec63f.png)

---

<div class="post-metadata">

**Author:** ![AuTa](https://forum.obsidian.md/user_avatar/forum.obsidian.md/auta/32/20520_2.png) [@AuTa](https://forum.obsidian.md/u/AuTa)\
**Post date:** [October 5, 2021, 1:19am UTC](https://forum.obsidian.md/t/cjk-wrong-rendering-in-edit-mode-for-bolded-wikilinks/20634/4 "2021-10-05T01:19:46Z")

</div>

zero width space is good

[Bold failure in Chinese sentence, because of the usage of Chinese punctuation is different from English - Spec - CommonMark Discussion](https://talk.commonmark.org/t/bold-failure-in-chinese-sentence-because-of-the-usage-of-chinese-punctuation-is-different-from-english/3478)

---

<div class="post-metadata">

**Author:** ![AuTa](https://forum.obsidian.md/user_avatar/forum.obsidian.md/auta/32/20520_2.png) [@AuTa](https://forum.obsidian.md/u/AuTa)\
**Post date:** [October 5, 2021, 1:57am UTC](https://forum.obsidian.md/t/cjk-wrong-rendering-in-edit-mode-for-bolded-wikilinks/20634/5 "2021-10-05T01:57:26Z")

</div>

bold with `[[]]`:

 ![image](https://forum.obsidian.md/uploads/default/original/3X/0/1/01f39c201b937020eb8daa3073ad036741e05030.png)  
 ![image](https://forum.obsidian.md/uploads/default/original/3X/3/8/3835af7f8948e282ba3d71a94e54c18089edb95e.png)  
link is right, but without strong

`<>` with `[[]]`:

 ![image](https://forum.obsidian.md/uploads/default/original/3X/d/d/dd9190e0bf0c6da5240cc445a6a0450adc372918.png)  
 ![image](https://forum.obsidian.md/uploads/default/original/3X/a/3/a35950855dfd485268f9178d2bec728855801304.png)  
link is wrong

but in preview mode all are right.

---

<div class="post-metadata">

**Author:** ![hxhc](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/h/43a26b/32.png) [@hxhc](https://forum.obsidian.md/u/hxhc)\
**Post date:** [December 25, 2021, 8:03am UTC](https://forum.obsidian.md/t/cjk-wrong-rendering-in-edit-mode-for-bolded-wikilinks/20634/6 "2021-12-25T08:03:18Z")

</div>

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](https://forum.obsidian.md/uploads/default/original/3X/3/1/317d06859051e8719192a6226dd78853531d6309.gif)

---

<div class="post-metadata">

**Author:** ![rlj1202](https://forum.obsidian.md/letter_avatar_proxy/v4/letter/r/278dde/32.png) [@rlj1202](https://forum.obsidian.md/u/rlj1202)\
**Post date:** [October 23, 2022, 5:56am UTC](https://forum.obsidian.md/t/cjk-wrong-rendering-in-edit-mode-for-bolded-wikilinks/20634/7 "2022-10-23T05:56:51Z")

</div>

I have a same issue. I am Korean user.

![image](https://forum.obsidian.md/uploads/default/original/3X/5/1/51e87b4b33dfa897d28d4e421490ef65321b6699.png)

---

<div class="post-metadata">

**Author:** ![AuTa](https://forum.obsidian.md/user_avatar/forum.obsidian.md/auta/32/20520_2.png) [@AuTa](https://forum.obsidian.md/u/AuTa)\
**Post date:** [November 1, 2022, 1:34am UTC](https://forum.obsidian.md/t/cjk-wrong-rendering-in-edit-mode-for-bolded-wikilinks/20634/8 "2022-11-01T01:34:31Z")

</div>

I think add `\u200B` to `punctuation` in markdown.js can resolve this bug.  
After add this regex, we can add zero width space.

```auto
punctuation = /[!"#$%&'()*+,\-.\/:;<=>?@\[\\\]^_`{|}~\xA1\xA7\xAB\xB6\xB7\xBB\xBF\u037E\u0387\u055A-\u055F\u0589\u058A\u05BE\u05C0\u05C3\u05C6\u05F3\u05F4\u0609\u060A\u060C\u060D\u061B\u061E\u061F\u066A-\u066D\u06D4\u0700-\u070D\u07F7-\u07F9\u0830-\u083E\u085E\u0964\u0965\u0970\u0AF0\u0DF4\u0E4F\u0E5A\u0E5B\u0F04-\u0F12\u0F14\u0F3A-\u0F3D\u0F85\u0FD0-\u0FD4\u0FD9\u0FDA\u104A-\u104F\u10FB\u1360-\u1368\u1400\u166D\u166E\u169B\u169C\u16EB-\u16ED\u1735\u1736\u17D4-\u17D6\u17D8-\u17DA\u1800-\u180A\u1944\u1945\u1A1E\u1A1F\u1AA0-\u1AA6\u1AA8-\u1AAD\u1B5A-\u1B60\u1BFC-\u1BFF\u1C3B-\u1C3F\u1C7E\u1C7F\u1CC0-\u1CC7\u1CD3\u2010-\u2027\u2030-\u2043\u2045-\u2051\u2053-\u205E\u207D\u207E\u208D\u208E\u2308-\u230B\u2329\u232A\u2768-\u2775\u27C5\u27C6\u27E6-\u27EF\u2983-\u2998\u29D8-\u29DB\u29FC\u29FD\u2CF9-\u2CFC\u2CFE\u2CFF\u2D70\u2E00-\u2E2E\u2E30-\u2E42\u3001-\u3003\u3008-\u3011\u3014-\u301F\u3030\u303D\u30A0\u30FB\uA4FE\uA4FF\uA60D-\uA60F\uA673\uA67E\uA6F2-\uA6F7\uA874-\uA877\uA8CE\uA8CF\uA8F8-\uA8FA\uA8FC\uA92E\uA92F\uA95F\uA9C1-\uA9CD\uA9DE\uA9DF\uAA5C-\uAA5F\uAADE\uAADF\uAAF0\uAAF1\uABEB\uFD3E\uFD3F\uFE10-\uFE19\uFE30-\uFE52\uFE54-\uFE61\uFE63\uFE68\uFE6A\uFE6B\uFF01-\uFF03\uFF05-\uFF0A\uFF0C-\uFF0F\uFF1A\uFF1B\uFF1F\uFF20\uFF3B-\uFF3D\uFF3F\uFF5B\uFF5D\uFF5F-\uFF65]|\uD800[\uDD00-\uDD02\uDF9F\uDFD0]|\uD801\uDD6F|\uD802[\uDC57\uDD1F\uDD3F\uDE50-\uDE58\uDE7F\uDEF0-\uDEF6\uDF39-\uDF3F\uDF99-\uDF9C]|\uD804[\uDC47-\uDC4D\uDCBB\uDCBC\uDCBE-\uDCC1\uDD40-\uDD43\uDD74\uDD75\uDDC5-\uDDC9\uDDCD\uDDDB\uDDDD-\uDDDF\uDE38-\uDE3D\uDEA9]|\uD805[\uDCC6\uDDC1-\uDDD7\uDE41-\uDE43\uDF3C-\uDF3E]|\uD809[\uDC70-\uDC74]|\uD81A[\uDE6E\uDE6F\uDEF5\uDF37-\uDF3B\uDF44]|\uD82F\uDC9F|\uD836[\uDE87-\uDE8B]/

```

---

<div class="post-metadata">

**Author:** ![WhiteNoise](https://forum.obsidian.md/user_avatar/forum.obsidian.md/whitenoise/32/11_2.png) [@WhiteNoise](https://forum.obsidian.md/u/WhiteNoise)\
**Post date:** [October 28, 2025, 1:04am UTC](https://forum.obsidian.md/t/cjk-wrong-rendering-in-edit-mode-for-bolded-wikilinks/20634/9 "2025-10-28T01:04:25Z")

</div>

For all the people who landed here. There are two issues in this BR. The first of which is really related to the markdown spec.

For the editor:

1. [Markdown: Treat CJK punctuation symbols as letters](https://forum.obsidian.md/t/markdown-treat-cjk-punctuation-symbols-as-letters/34354)

2. [Editor / Live Preview: Markdown markers are applied forward, even if there is no closing marker](https://forum.obsidian.md/t/editor-live-preview-markdown-markers-are-applied-forward-even-if-there-is-no-closing-marker/105109)

Reading mode is also incorrect according to markdown spec in this example.
