Re: [csswg-drafts] [css-text-3] Segment Break Transformation Rules around CJK Punctuation (#5086)

Prettier v3 adopts this kind of specification by chance.

A newline is trimmed instead of replaced with a space in both of the following conditions:

- At least either of adjacent characters are punctuation
- At least either of adjacent characters are CJK except for Korean letters

https://github.com/prettier/prettier/blob/dc8df0ab80e713f683177510fe0ce06840f5d1a5/src/language-markdown/print-whitespace.js#L159-L161

CSS segment break transformation rules are important for not only HTML but also Markdown (and AsciiDoc). Many Markdown converters preserve line breaks in document and leave them to the rules in CSS.

-- 
GitHub Notification of comment by tats-u
Please view or discuss this issue at https://github.com/w3c/csswg-drafts/issues/5086#issuecomment-2459561710 using your GitHub account


-- 
Sent via github-notify-ml as configured in https://github.com/w3c/github-notify-ml-config

Received on Wednesday, 6 November 2024 11:59:28 UTC