Support CJK Friendly Emphasis extension #752

Open
opened 2026-01-29 14:44:46 +00:00 by claunia · 0 comments
Owner

Originally created by @tats-u on GitHub (Sep 14, 2025).

CommonMark's emphasis has a specification bug that is incompatible with Chinese and Japanese.

**この文は太字になりません。**この文のせいで。

This sentence will not be bolded. It is due to this sentence.

Image

↓Wrong

plain CommonMark

↓It should be

with this spec

https://github.com/tats-u/markdown-cjk-friendly

This extension significantly improves compatibility with Chinese and Japanese. ** in all the above examples will be properly recognized as <strong> thanks to this extension.

Supported (opt-out):

  • VitePress
  • GitLab (via Comrak)
  • Redmine (via Comrak)

Supported (opt-in):

  • Comrak / commonmarker

remark plugin usage: https://github.com/tats-u/markdown-cjk-friendly/network/dependents NPM Downloads
(markdown-it plugin usage: https://github.com/tats-u/markdown-cjk-friendly/network/dependents?package_id=UGFja2FnZS01NzMwMzc4ODU5)

Playground: https://tats-u.github.io/markdown-cjk-friendly/

Blocked by #860

Originally created by @tats-u on GitHub (Sep 14, 2025). CommonMark's emphasis has a specification bug that is incompatible with Chinese and Japanese. <div lang="ja"> > **この文は太字になりません。**この文のせいで。 </div> > __This sentence will not be bolded.__ It is due to this sentence. <img width="788" height="151" alt="Image" src="https://github.com/user-attachments/assets/92be4841-99b1-4b1d-9e32-50abee477997" /> ↓Wrong ![plain CommonMark](https://github.com/user-attachments/assets/80bd3ffd-9416-4080-bc10-a408afef845b) ↓It should be ![with this spec](https://github.com/user-attachments/assets/b2e159c5-3cae-495f-89c6-280ddb2926ce) https://github.com/tats-u/markdown-cjk-friendly This extension significantly improves compatibility with Chinese and Japanese. `**` in all the above examples will be properly recognized as `<strong>` thanks to this extension. Supported (opt-_out_): - VitePress - GitLab (via Comrak) - Redmine (via Comrak) Supported (opt-in): - Comrak / commonmarker remark plugin usage: https://github.com/tats-u/markdown-cjk-friendly/network/dependents [![NPM Downloads](https://img.shields.io/npm/dm/remark-cjk-friendly)](https://npmjs.com/package/remark-cjk-friendly) (markdown-it plugin usage: https://github.com/tats-u/markdown-cjk-friendly/network/dependents?package_id=UGFja2FnZS01NzMwMzc4ODU5) Playground: https://tats-u.github.io/markdown-cjk-friendly/ Blocked by #860
claunia added the enhancement label 2026-01-29 14:44:46 +00:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: starred/markdig#752