Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Support custom parsing logic (pass worklet as parser prop) #439

Open
wants to merge 162 commits into
base: main
Choose a base branch
from

Conversation

tomekzaw
Copy link
Collaborator

@tomekzaw tomekzaw commented Jul 25, 2024

Details

This PR removes separate JS bundle with ExpensiMark logic and allows for customizing MarkdownTextInput formatting logic via parser property. Parser needs to be a function that accepts a plaintext string and returns an array of ranges.

Related Issues

#317

Manual Tests

Linked PRs

j-piasecki
j-piasecki previously approved these changes Oct 10, 2024
Copy link
Collaborator

@j-piasecki j-piasecki left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

🪨

apple/LiveMarkdownModule.mm Outdated Show resolved Hide resolved
android/src/main/cpp/MarkdownUtils.cpp Show resolved Hide resolved
@tomekzaw
Copy link
Collaborator Author

tomekzaw commented Nov 6, 2024

Regression: toggling font size doesn't work properly

Screen.Recording.2024-11-06.at.13.53.44.mov

It works correctly if there's a blockquote (NSParagraphStyle) in the middle of the text:

Screen.Recording.2024-11-06.at.14.01.11.mov

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.

2 participants