File tree Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Expand file tree Collapse file tree 1 file changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -16,10 +16,9 @@ - (void)markdown_textDidChange
16
16
{
17
17
RCTMarkdownUtils *markdownUtils = [self getMarkdownUtils ];
18
18
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 ]];
23
22
[super setSelectedRange: range]; // prevents cursor from jumping at the end when typing in the middle of the text
24
23
self.typingAttributes = self.defaultTextAttributes ; // removes indent in new line when typing after blockquote
25
24
}
You can’t perform that action at this time.
0 commit comments