-
Notifications
You must be signed in to change notification settings - Fork 3.4k
Remove line break in CJK text. #90
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
Comments
Similar Issue: #51 |
GFM line breaks can do this now that they've been added. Use |
This issue did not be resolved. When the Markdown input is like that (no extra whitespace before newline):
The rendered visual result would be (I use
For CJK, the whitespace is not expected. This behavior works fine for writing systems that use spaces to separate words, but not for Chinese or Japanese1. The current behavior conforms to CommonMark. We may solve the problem with an extension or a plugin, like markdown-it-cjk-breaks and pandoc's east_asian_line_breaks. More discussions:
Could you please reopen this issue? For people coming from search engines: You can use marked-cjk-breaks. Footnotes
|
We use our open issues like a backlog of things we could work on in marked. It sounds like creating an extension is the way to go, so there is nothing to work on in marked. Once you create the extension you can open a PR to add the extension to our known extensions. 😁👍 |
First, sorry for my poor English.
One thing annoying me is
will be render to
In the browser a space will appears between "你好!" and "谢谢" when page are rendered.
This is fine in English and those languages seperate words by space. However for Chinese, Japanese and Korean, the extra line break(which will rendered as a space) is not nessaray.
P.S. I know actually this issue is of markdown specs, but I use marked in my project, so I report this issue here. Ugly workaround exists for me, but I wish to have it as a feature of marked.
The text was updated successfully, but these errors were encountered: