Skip to content

feat(android): add GFM streaming support for tables and block math#271

Merged
hryhoriiK97 merged 4 commits intofeat/ios-gfm-streaming-segmentsfrom
feat/android-gfm-streaming-segments
Apr 28, 2026
Merged

feat(android): add GFM streaming support for tables and block math#271
hryhoriiK97 merged 4 commits intofeat/ios-gfm-streaming-segmentsfrom
feat/android-gfm-streaming-segments

Conversation

@hryhoriiK97
Copy link
Copy Markdown
Collaborator

@hryhoriiK97 hryhoriiK97 commented Apr 26, 2026

What/Why?

Ports the iOS GFM streaming approach (#270) to Android.

Introduces the same segment-based architecture: streaming filter, FNV-1a signatures, and 4-step view reconciliation. Aligns Android measurement with the streaming filter so Yoga layout height tracks rendered content reliably, and serializes the streamingAnimation prop through the C++ bridge to ensure the measurement path applies the same filtering as the view layer.

Static GFM behavior remains unchanged.

Testing

PR Checklist

  • Code compiles and runs on iOS
  • Code compiles and runs on Android
  • Updated documentation/README if applicable
  • Ran example app to verify changes

@hryhoriiK97 hryhoriiK97 marked this pull request as ready for review April 28, 2026 09:48
@hryhoriiK97 hryhoriiK97 merged commit b448512 into feat/ios-gfm-streaming-segments Apr 28, 2026
@hryhoriiK97 hryhoriiK97 deleted the feat/android-gfm-streaming-segments branch April 28, 2026 11:12
hryhoriiK97 added a commit that referenced this pull request Apr 28, 2026
* feat(ios): improve GFM streaming for tables and math

* feat(ios): improve GFM streaming for tables and math

* refactor(ios): change segment signature type from NSString to uint64_t for improved performance

* refactor(ios): enhance segment view reconciliation with two-pass matching strategy

* docs(ios): add comments to ShadowMeasurementUtils.h explaining measureContent behavior

* refactor(ios): move inline functions from StreamingMarkdownFilter.h to StreamingMarkdownFilter.m

* refactor(ios): consolidate measurement logic for EnrichedMarkdown components into reusable functions

* refactor(ios): replace boolean flags with bitmask for segment rendering state management

* refactor(ios): optimize segment view reconciliation by tracking remaining signatures for reuse

* feat(ios): add streamingConfig with progressive table mode for GFM streaming

* feat(android): add GFM streaming support for tables and block math (#271)

* feat(android): add GFM streaming support for tables and block math

* feat(android): implement table streaming mode for GFM support in EnrichedMarkdown

* refactor(ios): streamline line offset calculations in StreamingMarkdownFilter

* docs: update API reference and markdown streaming documentation to include  for GFM table handling
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