Skip to content

Commit ece3559

Browse files
committed
So far so good
1 parent a19a31a commit ece3559

File tree

1 file changed

+3
-4
lines changed

1 file changed

+3
-4
lines changed

apple/RCTUITextView+Markdown.mm

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,9 @@ - (void)markdown_textDidChange
1616
{
1717
RCTMarkdownUtils *markdownUtils = [self getMarkdownUtils];
1818
if (markdownUtils != nil) {
19-
NSRange range = self.selectedRange;
20-
NSAttributedString *attributedText = [markdownUtils parseMarkdown:self.attributedText withAttributes:self.defaultTextAttributes];
21-
[self breakUndoCoalescing];
22-
[self.textStorage setAttributedString:attributedText ?: [NSAttributedString new]];
19+
NSRange range = [self selectedTextRange];
20+
NSAttributedString *attributedString = [markdownUtils parseMarkdown:self.attributedText withAttributes:self.defaultTextAttributes];
21+
[self.textStorage setAttributedString:attributedString ?: [NSAttributedString new]];
2322
[super setSelectedRange:range]; // prevents cursor from jumping at the end when typing in the middle of the text
2423
self.typingAttributes = self.defaultTextAttributes; // removes indent in new line when typing after blockquote
2524
}

0 commit comments

Comments
 (0)