Skip to content

fix: Plain text paste does not preserve line breaks#2702

Draft
Gxrvish wants to merge 1 commit intoTypeCellOS:mainfrom
Gxrvish:main
Draft

fix: Plain text paste does not preserve line breaks#2702
Gxrvish wants to merge 1 commit intoTypeCellOS:mainfrom
Gxrvish:main

Conversation

@Gxrvish
Copy link
Copy Markdown

@Gxrvish Gxrvish commented May 3, 2026

Summary

This PR aims to solve an issue described here

Rationale

Changes

Impact

Testing

Screenshots/Video

Checklist

  • Code follows the project's coding standards.
  • Unit tests covering the new feature have been added.
  • All existing tests pass.
  • The documentation has been updated to reflect the new feature

Additional Notes

@vercel
Copy link
Copy Markdown

vercel Bot commented May 3, 2026

@gppa-odoo is attempting to deploy a commit to the TypeCell Team on Vercel.

A member of the Team first needs to authorize it.

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented May 3, 2026

Important

Review skipped

Draft detected.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

⚙️ Run configuration

Configuration used: Organization UI

Review profile: CHILL

Plan: Pro

Run ID: cc53f382-9493-45db-996a-0a733095eaf6

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review
✨ Finishing Touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests

Tip

💬 Introducing Slack Agent: The best way for teams to turn conversations into code.

Slack Agent is built on CodeRabbit's deep understanding of your code, so your team can collaborate across the entire SDLC without losing context.

  • Generate code and open pull requests
  • Plan features and break down work
  • Investigate incidents and troubleshoot customer tickets together
  • Automate recurring tasks and respond to alerts with triggers
  • Summarize progress and report instantly

Built for teams:

  • Shared memory across your entire org—no repeating context
  • Per-thread sandboxes to safely plan and execute work
  • Governance built-in—scoped access, auditability, and budget controls

One agent for your entire SDLC. Right inside Slack.

👉 Get started


Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@Gxrvish
Copy link
Copy Markdown
Author

Gxrvish commented May 3, 2026

@YousefED few remarks?
first time solving bug in BlockNote, Sorry if i missed some internal guidelines 🙂
Thanks!

Comment thread package.json
],
"dependencies": {
"remark-breaks": "^4.0.0"
}
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is installed to the wrong package.json, it should be installed to the one in packages/core/package.json, this is a monorepo

import { Schema } from "prosemirror-model";
import remarkGfm from "remark-gfm";
import remarkParse from "remark-parse";
import remarkBreaks from "remark-breaks";
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, would prefer not to introduce a whole package just for this. And would like to have tests added that prove it does not break existing behavior

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Honestly, would prefer not to introduce a whole package just for this

For this operation adding a package is worth, Because doing it from scratch without the help of package might break some edge cases which may introduce unusual behaviour.

would like to have tests added that prove it does not break existing behavior

Will add it soon 🙂
Thanks for the review 😊 !!!

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.

2 participants