Future of CJK characters and CommonMark alignment #311
Replies: 4 comments 3 replies
-
This is the well-known problem. CommonMark is designed by westerner people that uses space-separated languages and they often do not take account into languages like CJK(that are not separated by spaces) and Arabic(that is written from right to left). This problem has been discussed for a long time, but there are no progress. I suspect that CommonMark authors(mostly westerners) are not interested in languages that they do not use. I always give compatibilities a high priority, however, as a Japanese, I might plan deviating from CommonMark about emphasis future. I think that introduce "escaped space"(like ReST) is a one good solution for this problem. This makes This solution is very easy to implement in CommonMark parser. |
Beta Was this translation helpful? Give feedback.
-
@flipacholas @wdscxsj I've implemented a "escaped space"(like ReST) and "east asian line breaks"(like pandoc) and published v1.5.0 package. |
Beta Was this translation helpful? Give feedback.
-
Thanks for your great work! It seems the escaped space following the closing emphasis is not working as expected. I'll check the test code to see what goes wrong. Update: It turns out this issue happens when By the way, it would be better if |
Beta Was this translation helpful? Give feedback.
-
Thanks for the fix! For the 2nd issue, I tried again and found the same culprit:
|
Beta Was this translation helpful? Give feedback.
-
I understand this issue has been discussed before (#61) and it's even a fundamental problem with the specification (#488), which still hasn't been solved to this day.
I'm now dealing with markdown text written in Chinese Simplified and I found many instances where the
**
and*
don't work as expected. So, before I start adding hacks to fix my documents, I was wondering if there are plans for goldmark to deviate from commonmark rules and alter its parsing so CJK characters work without these problems. I'm willing to donate if needed.Regards.
Beta Was this translation helpful? Give feedback.
All reactions