githubnext/chopinPublic

Let's compose rich plans together

Keep long documents converting on paste

Raise the node bound to 20,000; the per-block cap is what prevents the
freeze. Take the literal path before parsing when a paste holds more than
4,000 emphasis characters, since the parser is quadratic on lone runs.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
C5MAMaggie Appleton and Claude Opus 5.5 authored
7f95d85Patch
Parent7080ef3
2 files changed+31-6
StackedSplit
packages/editor/src/markdown-paste.test.ts+20 −2
packages/editor/src/markdown-paste.ts+11 −4