Skip to content

feat(web): add a block store for the web input - #715

Open
sbarczyk wants to merge 6 commits into
feat/web-input-formatting-storefrom
feat/web-input-block-store
Open

feat(web): add a block store for the web input#715
sbarczyk wants to merge 6 commits into
feat/web-input-formatting-storefrom
feat/web-input-block-store

Conversation

@sbarczyk

@sbarczyk sbarczyk commented Aug 27, 2026

Copy link
Copy Markdown
Collaborator

Second layer of the web EnrichedMarkdownTextInput. Line-scoped block ranges for headings and list items, ported from Kotlin BlockStore.kt and cross-checked against iOS.

  • paragraphBounds, setBlock, removeBlock: caret expands to whole lines
  • adjustForEdit: shared range math plus zero-length anchors on emptied lines
  • normalizeToLineBounds: re-snaps ranges to lines after edits
  • recomputeListMetadata: clamps list depths, renumbers ordinals (with iOS-only guards)

Tested with Jest. Stacked on #718.

@sbarczyk sbarczyk changed the title feat/web input block store feat(web): add a block store for the web input Aug 27, 2026
@sbarczyk
sbarczyk marked this pull request as ready for review August 27, 2026 09:42
@sbarczyk
sbarczyk force-pushed the feat/web-input-block-store branch from e882294 to 4814b82 Compare August 31, 2026 12:14
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