You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
SD-2570 - fix: document API tracked changes not fully rendered on document (#2825)
* fix: document API tracked changes not fully rendered on document
* refactor: unified functions/reuse existing functions
* chore: small code tweaks
* chore: small test tweaks
* fix: caret position
* fix: pm positions
* test: added tests to ensure pm positions are correct
* fix: expand lines once per paragraph
* fix: docs
* refactor: small code tweaks
* feat: add trackedChange property to BreakRun
* fix: skip empty segments
* fix: don't expose benchmarks/remove dead code
* fix(pm-adapter): preserve break for empty segments in expandRunsForInlineNewlines
The previous guard early-returned the whole iteration when a segment was
empty, which also skipped the break emit and cursor advance. Leading
\n, trailing \n, and consecutive \n\n inputs would drop breaks and
shift pm positions downstream.
Guard only the empty-text push so the break logic still runs for every
\n in the source text.
---------
Co-authored-by: Gabriel Chittolina <gabrielchittolina1@gmail.com>
Co-authored-by: Caio Pizzol <caio@superdoc.dev>
0 commit comments