Skip to content

Markdown: Disable breaking a line at the place around Chinese or Japanese characters even when proseWrap is always #16710

@tats-u

Description

@tats-u

Prettier 3.3.3
Playground link

# Options (if any):
--prose-wrap=always --print-width=40

Input:

English 日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語 English sentence

Output:

English 日本語日本語日本語日本語日本語日
本語日本語日本語日本語日本語日本語日本語
日本語日本語日本語日本語日本語日本語
English sentence

Expected output:

English 日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語日本語 English
sentence

Why?

The result expected in #14936 breaks the existing Markdown documents. We should temporally disable breaking a line not only between Chinese/Japanese characters but also between Latin and Chinese/Japanese characters.
This issue is opened for closed by #16691.

Metadata

Metadata

Assignees

No one assigned

    Labels

    locked-due-to-inactivityPlease open a new issue and fill out the template instead of commenting.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions