Skip to content

Commit

Permalink
Fix blockquote paddings and remove backedTextInputView (#289)
Browse files Browse the repository at this point in the history
  • Loading branch information
maksg authored Apr 11, 2024
1 parent 530cdbc commit 877fbfa
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
4 changes: 2 additions & 2 deletions ios/MarkdownLayoutManager.mm
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ - (void)drawBackgroundForGlyphRange:(NSRange)glyphsToShow atPoint:(CGPoint)origi
}
}];
if (isBlockquote) {
CGFloat paddingLeft = markdownUtils.backedTextInputView.textContainerInset.left;
CGFloat paddingTop = markdownUtils.backedTextInputView.textContainerInset.top;
CGFloat paddingLeft = origin.x;
CGFloat paddingTop = origin.y;
CGFloat y = paddingTop + rect.origin.y;
CGFloat width = markdownUtils.markdownStyle.blockquoteBorderWidth;
CGFloat height = rect.size.height;
Expand Down
1 change: 0 additions & 1 deletion ios/RCTMarkdownUtils.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@ NS_ASSUME_NONNULL_BEGIN

@property (nonatomic) RCTMarkdownStyle *markdownStyle;
@property (nonatomic) NSMutableArray<NSDictionary *> *blockquoteRangesAndLevels;
@property (weak, nonatomic) UIView<RCTBackedTextInputViewProtocol> *backedTextInputView;

- (NSAttributedString *)parseMarkdown:(nullable NSAttributedString *)input withAttributes:(nullable NSDictionary<NSAttributedStringKey, id>*)attributes;

Expand Down

0 comments on commit 877fbfa

Please sign in to comment.