-
Notifications
You must be signed in to change notification settings - Fork 3.9k
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
[markdown rendering issue] stick words with italic is not working #2040
Comments
Right now italic requires spaces to the both sides of I can tweak this rule, but tell me how? We don't want the star Also, is this a real problem? Can you rephrase Korean? @Violet-Bora-Lee what you think? |
Until now, I've added a whitespace in order to avoid this problem. Is it easy to implement? If not, I could add some guide on the README file. |
Hi, The question is deeper than one might think. Some time ago we rewrote our parser to base it on https://github.com/markdown-it/markdown-it, that implements the CommonMark specification. The italic/bold thing is handled by that parser, according to the spec. I decided to see what the CommonMark spec says about that case. At https://commonmark.org/help/tutorial/02-emphasis.html I entered And it remained So if we want it to be converted, we need to tell the guys who make the CommonMark specification about it. Then they can hopefully update the spec, and then the parser updates too, so everyone's happy. I suggest going to https://talk.commonmark.org/ and making a topic there, such as "BUG in Korean" and then describe the issue. Maybe there's a way out. P.S. Please note: the problem occurs only if I put "(script)" in the phrase. Maybe |
This is not a bug, but an unfortunate (and arguably bad) design choice made by CommonMark. (See the spec.) tldr: use To parse nested emphases such as Unfortunately, the heuristics is far from being perfect.
(Example drawn from commonmark/commonmark-spec#643) The In practical English or European text, however, the case like More regrettably, it seems that the development of CommonMark has been stagnated, so the best bet right now is to use one of the following workarounds:
Personally, I would use the second option. |
Hi iliakan.
I'm participating in the javascript.ko project.
By the way, I found markdown rendering issue.
It may only occur in Korean documents.
See below screenshot.
Korean sometimes has to stick words together.
I Hope this helps fix the issue.
The text was updated successfully, but these errors were encountered: