Skip to content

fix(editor): preserve soft line breaks#112

Merged
ocavue merged 15 commits into
masterfrom
ocavue/preserve-whitespace-soft-break
Jun 21, 2026
Merged

fix(editor): preserve soft line breaks#112
ocavue merged 15 commits into
masterfrom
ocavue/preserve-whitespace-soft-break

Conversation

@ocavue

@ocavue ocavue commented Jun 21, 2026

Copy link
Copy Markdown
Member

Alternative to #109: preserve soft line breaks by giving the paragraph and heading specs whitespace: 'pre' (plus white-space: pre-wrap CSS) and dedenting list continuation lines on parse, instead of a hardBreak node, plus the shared trailing-whitespace normalizing classifier fix.

@vercel

vercel Bot commented Jun 21, 2026

Copy link
Copy Markdown

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

1 Skipped Deployment
Project Deployment Actions Updated (UTC)
meowdown Ignored Ignored Preview Jun 21, 2026 4:10pm

@pkg-pr-new

pkg-pr-new Bot commented Jun 21, 2026

Copy link
Copy Markdown

Open in StackBlitz

npm i https://pkg.pr.new/prosekit/meowdown/@meowdown/core@112
npm i https://pkg.pr.new/prosekit/meowdown/@meowdown/react@112

commit: 4726c3c

@github-actions

github-actions Bot commented Jun 21, 2026

Copy link
Copy Markdown

Coverage Report

Status Category Percentage Covered / Total
🔵 Lines 93.89% 1661 / 1769
🔵 Statements 92.03% 1837 / 1996
🔵 Functions 93.59% 409 / 437
🔵 Branches 84.25% 1017 / 1207
File Coverage
File Stmts Branches Functions Lines Uncovered Lines
Changed Files
packages/core/src/style.css 0% 0% 0% 0%
packages/core/src/converters/check-roundtrip.ts 100% 100% 100% 100%
packages/core/src/converters/md-to-pm.ts 98.15% 84.41% 100% 99% 118-120, 162, 219
packages/core/src/extensions/extension.ts 100% 100% 100% 100%
packages/core/src/extensions/heading.ts 87.5% 40% 100% 86.66% 64-65
packages/core/src/extensions/paragraph.ts 100% 100% 100% 100%
Generated in workflow #497 for commit 4726c3c by the Vitest Coverage Report Action

@ocavue ocavue force-pushed the ocavue/preserve-whitespace-soft-break branch from 5653313 to 80aad8c Compare June 21, 2026 15:13
@ocavue ocavue changed the title fix(converter): preserve list soft breaks via whitespace: pre fix(editor): preserve soft line breaks via whitespace: pre Jun 21, 2026
@ocavue ocavue changed the title fix(editor): preserve soft line breaks via whitespace: pre fix(editor): preserve soft line breaks Jun 21, 2026
@ocavue ocavue marked this pull request as ready for review June 21, 2026 16:14
@ocavue ocavue merged commit 7e0e7bb into master Jun 21, 2026
12 checks passed
@ocavue ocavue deleted the ocavue/preserve-whitespace-soft-break branch June 21, 2026 16:14
@ocavuebot ocavuebot mentioned this pull request Jun 21, 2026
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