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

Introduce MarkdownRange class on Android #559

Merged
merged 1 commit into from
Dec 4, 2024

Conversation

tomekzaw
Copy link
Collaborator

@tomekzaw tomekzaw commented Dec 4, 2024

Details

This PR adds an intermediate step in formatting applyMarkdownFormatting method on Android. Instead of using JSONObject obtained from parser directly, first we populate markdownRanges list consisting of MarkdownRange objects. Then, we call applyRange while iterating over the array.

This change will make it simpler to split the implementation into smaller parts and memoize the parser output as Java objects instead of memoizing JSON string.

Related Issues

GH_LINK

Manual Tests

Linked PRs

@tomekzaw tomekzaw requested a review from j-piasecki December 4, 2024 17:42
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.

Type could be an enum, though I guess it would require more changes to the code.

@tomekzaw tomekzaw merged commit c0dbced into main Dec 4, 2024
5 checks passed
@tomekzaw tomekzaw deleted the @tomekzaw/android-markdown-range branch December 4, 2024 17:51
@os-botify
Copy link
Contributor

os-botify bot commented Dec 4, 2024

🚀 Published to npm in 0.1.191 🎉

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