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

Parse string while setting local copy of attributed string #3

Merged
merged 7 commits into from
Dec 7, 2023

Conversation

robertKozik
Copy link
Collaborator

No description provided.

Comment on lines 29 to 34
if([self isMarkdownEnabled]) {
NSAttributedString *postParseString = [RCTMarkdownUtils parseMarkdown:self.backedTextInputView.attributedText.string];
[self.backedTextInputView setAttributedText:postParseString];
}

[self markdown_updateLocalData];
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
if([self isMarkdownEnabled]) {
NSAttributedString *postParseString = [RCTMarkdownUtils parseMarkdown:self.backedTextInputView.attributedText.string];
[self.backedTextInputView setAttributedText:postParseString];
}
[self markdown_updateLocalData];
if ([self isMarkdownEnabled]) {
NSAttributedString *attributedText = [RCTMarkdownUtils parseMarkdown:self.backedTextInputView.attributedText.string];
[self.backedTextInputView setAttributedText:attributedText];
}
[self markdown_updateLocalData];

@tomekzaw tomekzaw merged commit 7a52fba into main Dec 7, 2023
@tomekzaw tomekzaw deleted the parseLocalAttributedString branch December 7, 2023 18:18
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