-
-
Notifications
You must be signed in to change notification settings - Fork 59
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Incorrect handling of emphasis for Japanese language #41
Comments
Hi @mik-menshikov! “Output - incorrect” is what CommonMark does too: https://spec.commonmark.org/dingus/?text=1.%20%20**新規アプリの追加(NEW%20APP)**を選択します%E3%80%82. We follow CM, so this is not an issue in micromark but one in CM. commonmark/commonmark-spec#650 seems to be the issue, and also commonmark/commonmark-spec#488 might be related. |
@wooorm that's sad. It seems that the spec was developed without taking into account East-Asian languages. I think it should be mentioned somewhere, so people know the limitations and choose alternative solutions. I read you story and think you have done a great work. Thanks! |
@mik-menshikov, in case you are interested, there has been a variety of conversations about this on the CommonMark Discourse: |
Emphasis markup is parsed incorrectly for Japanese language
Your environment
Steps to reproduce
Input (Japanese) :
Output - incorrect:
Expected behavior
Emphasis should be parsed correctly
Additional:
The same text in English and Chinese
Input (English):
Output - correct:
Input (Chinese):
Output - correct:
This bug appeared when I switched to remark-parse@9.0.0 from remark-parse@8.0.3.
The next code works correctly:
The text was updated successfully, but these errors were encountered: