-
-
Notifications
You must be signed in to change notification settings - Fork 4.6k
Markdown: Don't break a line at the place around Chinese or Japanese characters #16691
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
Conversation
8ae9377 to
7a095e4
Compare
|
This force push is just a rebase to |
2662898 to
91570bd
Compare
| かつてはワ行のワ、ヰ、ヱ、ヲに濁点を付して [v] | ||
| 音を表現すること(ワ゛、ヰ゛、ヱ゛、ヲ゛)も行われたが、一般的にはならなかった。 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
When prev or next is undefined, " " and "\n" have been interchangeable.
Co-authored-by: SUZUKI Sosuke <aosukeke@gmail.com>
sosukesuzuki
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you, LGTM
Closes #16710
Description
The 2nd safest part of #15081
All HTML browsers (even Firefox) insert space between Chinese/Japanese and others.
https://wpt.fyi/results/css/css-text/line-breaking?label=master&label=experimental&aligned&q=segment-break-transformation- (See only those that all browsers pass)
FYI, FIrefox treats the following characters in BMP and SSP (Plane 0-1) as Chinese/Japanese:
https://github.com/tats-u/cj-newline-test/?tab=readme-ov-file#result-in-firefox
The current behavior of Prettier (3.x) with
proseWrapalwaysconflicts with it.This change will help Markdown documents converted to HTML or JS components to be rendered more correctly by browsers.
Note: this doesn't affect on line breaks between Chinese/Japanese and Korean letters because a space and a line break there is equivalent.
Checklist
docs/directory).changelog_unreleased/*/XXXX.mdfile followingchangelog_unreleased/TEMPLATE.md.✨Try the playground for this PR✨