Skip to content

Conversation

@tats-u
Copy link
Contributor

@tats-u tats-u commented Oct 29, 2024

Description

A part of #15081
Fixes #14936
Blocked by #16816 (Merged)

Always convert \n between han (including Japanese kana) and non-han to a space and allow line breaking at a space between han and non-han again (banned by #16691)

I'll rebase this to next after next merges main one more time. next doesn't include the change by #16691 and this PR depends on it.

Question

Checklist

  • I’ve added tests to confirm my change works.
  • (If changing the API or CLI) I’ve documented the changes I’ve made (in the docs/ directory).
  • (If the change is user-facing) I’ve added my changes to changelog_unreleased/*/XXXX.md file following changelog_unreleased/TEMPLATE.md.
  • I’ve read the contributing guidelines.

Try the playground for this PR

@tats-u tats-u force-pushed the markdown-newline-handling branch from 4376cfd to e8c10f3 Compare November 4, 2024 11:58
@tats-u tats-u changed the base branch from main to next January 16, 2026 03:38
@pkg-pr-new
Copy link

pkg-pr-new bot commented Jan 16, 2026

Open in StackBlitz

yarn add https://pkg.pr.new/prettier/prettier/@prettier/plugin-hermes@16805.tgz
yarn add https://pkg.pr.new/prettier/prettier/@prettier/plugin-oxc@16805.tgz
yarn add https://pkg.pr.new/prettier/prettier@16805.tgz

commit: 581651b

@netlify
Copy link

netlify bot commented Jan 16, 2026

Deploy Preview for prettier ready!

Built without sensitive environment variables

Name Link
🔨 Latest commit 581651b
🔍 Latest deploy log https://app.netlify.com/projects/prettier/deploys/696b7b14c625270008593b51
😎 Deploy Preview https://deploy-preview-16805--prettier.netlify.app
📱 Preview on mobile
Toggle QR Code...

QR Code

Use your smartphone camera to open QR code link.

To edit notification comments on pull requests, go to your Netlify project configuration.

@tats-u
Copy link
Contributor Author

tats-u commented Jan 16, 2026

Once I tidy up the changelog a bit more, it'll be done.

@tats-u tats-u changed the title [next/Breaking Change] Make Markdown's newline handling compatible with browsers' behavior [next/Breaking Change] Make Markdown's newline handling more compatible with the behavior of browsers/CSS Jan 17, 2026
@tats-u tats-u changed the title [next/Breaking Change] Make Markdown's newline handling more compatible with the behavior of browsers/CSS [next/Breaking Change] Make Markdown's newline handling nearly compatible with the behavior of browsers/CSS Jan 17, 2026
@tats-u tats-u marked this pull request as ready for review January 17, 2026 12:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[For v4+ / breaking change] Always treat newline between non-punctuation han/kana and alphanumeric as space when proseWrap is always

1 participant