-
Notifications
You must be signed in to change notification settings - Fork 74
Closed as not planned
Labels
Description
Rule details
This rule warns *
and **
incompatible with CommonMark especially in some languages (especially Japanese and Chinese and sometimes Korean)
What type of rule is this?
Warns about a potential problem
Example code
**この文は太字になりません。(日本語)**左边的句子没有加粗。(中文)
<!-- **This sentence will not be bold. (Japanese)** The left sentence will not be bold. (Chinese) -->
<!-- Asterisks in the English-translated sentences will be converted to <strong> but those in the original Japanese and Chinese sentences will NOT be -->
Prior Art
Participation
- I am willing to submit a pull request to implement this rule.
Additional comments
This spec bug in CommonMark has suffered Japanese and Chinese Markdown users for a long time.
- https://github.com/tats-u/markdown-cjk-friendly
- Emphasis with CJK punctuation commonmark/commonmark-spec#650
- https://community.openai.com/t/markdown-bold-formatting-error-in-japanese/1111571
- https://talk.commonmark.org/t/emphasis-and-east-asian-text/2491
- https://talk.commonmark.org/t/cjk-and-bold-tags-possibly-complex-issue/4034/7
- https://talk.commonmark.org/t/bold-failure-in-chinese-sentence-because-of-the-usage-of-chinese-punctuation-is-different-from-english/3478/17
↓ The 2 surrounding spaces around the bold link are essentially unnecessary, but added to avoid this problem.