Skip to content

fix: handling of zero-width space (ZWS) offset inside parser#500

Merged
kacperzolkiewski merged 5 commits intomainfrom
@kacperzolkiewski/fix-br-parsing
Apr 8, 2026
Merged

fix: handling of zero-width space (ZWS) offset inside parser#500
kacperzolkiewski merged 5 commits intomainfrom
@kacperzolkiewski/fix-br-parsing

Conversation

@kacperzolkiewski
Copy link
Copy Markdown
Collaborator

@kacperzolkiewski kacperzolkiewski commented Mar 26, 2026

Summary

Fixes: #419

This PR fixes handling of zero-width space (ZWS) offset inside empty paragraphs, ensuring parsed styles are applied in correct position in applyProcessedStyles.

Test Plan

  1. Run test case from the issue: [Bug][iOS] Codeblock parsing #419
  2. Insert some other html examples by "Set Input's value' button in example app and check if they are displayed properly

Screenshots / Videos

Screen.Recording.2026-03-26.at.15.38.43.mov

Compatibility

OS Implemented
iOS
Android

Checklist

  • E2E tests are passing
  • Required E2E tests have been added (if applicable)

@kacperzolkiewski kacperzolkiewski merged commit 3652095 into main Apr 8, 2026
7 checks passed
@kacperzolkiewski kacperzolkiewski deleted the @kacperzolkiewski/fix-br-parsing branch April 8, 2026 06:18
pkaramon added a commit that referenced this pull request Apr 8, 2026
pkaramon added a commit that referenced this pull request Apr 8, 2026
@pkaramon pkaramon mentioned this pull request Apr 8, 2026
2 tasks
pkaramon added a commit that referenced this pull request Apr 8, 2026
# Summary

Added a regression test for PR #500 

## Test Plan


## Screenshots / Videos

Include any visual proof that helps reviewers understand the change — UI
updates, bug reproduction or the result of the fix.

## Compatibility

| OS      | Implemented |
| ------- | :---------: |
| iOS     |    ✅❌    |
| Android |    ✅❌     |

## Checklist

- [ ] E2E tests are passing
- [ ] Required E2E tests have been added (if applicable)
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.

[Bug][iOS] Codeblock parsing

2 participants