Skip to content

Conversation

@noamzaks
Copy link
Contributor

Description

Closes #7912.

Test plan

Before

After

@vercel
Copy link

vercel bot commented Oct 12, 2025

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Preview Comments Updated (UTC)
lexical Ready Ready Preview Comment Oct 12, 2025 10:56am
lexical-playground Ready Ready Preview Comment Oct 12, 2025 10:56am

@meta-cla meta-cla bot added the CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed. label Oct 12, 2025
@noamzaks
Copy link
Contributor Author

Waiting to see if this looks like a good direction before continuing, if anyone has the time to take a look

@etrepum
Copy link
Collaborator

etrepum commented Oct 12, 2025

I think this would be better implemented as an opt-in extension rather than at the lowest level. There are other situations where it’s preferable that extra paragraphs shouldn’t be created (when the editor has a more fixed layout, like the playground in markdown editing mode)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CLA Signed This label is managed by the Facebook bot. Authors need to sign the CLA before a PR can be reviewed.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Feature: create empty paragraph before/after code block if it's the first/last node

2 participants