Skip to content

Add SoftBreakExtension for opt-in soft line break behavior#738

Open
flavorjones wants to merge 1 commit intomainfrom
flavorjones/soft-line-breaks
Open

Add SoftBreakExtension for opt-in soft line break behavior#738
flavorjones wants to merge 1 commit intomainfrom
flavorjones/soft-line-breaks

Conversation

@flavorjones
Copy link
Member

@flavorjones flavorjones commented Feb 17, 2026

When loaded, the SoftBreakExtension changes some keystrokes to preserve true markdown-style vertical whitespace:

  • Single Enter inserts a <br> instead of a paragraph break,
  • double Enter converts to a paragraph break,
  • and Backspace at a paragraph start merges with a <br>.

This allows apps like BC5 and Fizzy to format pasted Markdown properly while preserving the application-specific typing experience.

Consumers opt in via:

  import { configure, SoftBreakExtension } from "lexxy"
  configure({ global: { extensions: [SoftBreakExtension] } })

ref: https://app.3.basecamp.com/2914079/buckets/44335813/messages/9589745694

Single Enter inserts a <br> instead of a paragraph break, double
Enter converts to a paragraph break, and Backspace at a paragraph
start merges with a <br>. This allows apps like BC5 and Fizzy to
use proper paragraph spacing CSS while preserving the expected
typing experience.

Consumers opt in via:

  import { configure, SoftBreakExtension } from "lexxy"
  configure({ global: { extensions: [SoftBreakExtension] } })
@flavorjones flavorjones force-pushed the flavorjones/soft-line-breaks branch from b5e9926 to e176435 Compare February 18, 2026 00:22
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.

1 participant

Comments