Skip to content

Commit

Permalink
Add comment
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekzaw committed Dec 12, 2024
1 parent edfa822 commit 03ec16f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions apple/MarkdownFormatter.mm
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,9 @@ - (void)formatAttributedString:(nonnull NSMutableAttributedString *)attributedSt

[attributedString beginEditing];

// We cannot simply call `[attributedString setAttributes:@{} range:fullRange];`
// because it makes spellcheck disappear immediately and also makes cursor lag behind while typing fast.

[attributedString removeAttribute:NSParagraphStyleAttributeName range:fullRange];
[attributedString removeAttribute:RCTLiveMarkdownBlockquoteDepthAttributeName range:fullRange];

Expand Down

0 comments on commit 03ec16f

Please sign in to comment.