This is a micromark extension designed to fix a limitation in the CommonMark specification regarding emphasis (**) when used with Chinese, Japanese, and Korean (CJK) text.
The Problem
In standard CommonMark, emphasis marks (**) are often not recognized if the character immediately inside the marks is a CJK punctuation mark (like 。) or a parenthesis, and the character immediately outside is not a space or punctuation.
Example of failing CommonMark:
**このアスタリスクは強調記号として認識されず、そのまま表示されます。**この文のせいで。
When to use this
You should adopt this extension instead of plain CommonMark or GFM if:
- Handling unsupervised content: You need to display user-generated or AI-generated CJK content as-is.
- Translation workflows: You work with translators (using tools like Crowdin or Transifex) who may not understand CommonMark edge cases and cannot provide real-time rendering previews, and you cannot allow raw
<strong> tags. - Target Audience: You are building Markdown-related software specifically targeting CJK users.