diff --git a/ios/MarkdownLayoutManager.mm b/ios/MarkdownLayoutManager.mm index eae5e4c7..3974ba98 100644 --- a/ios/MarkdownLayoutManager.mm +++ b/ios/MarkdownLayoutManager.mm @@ -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; diff --git a/ios/RCTMarkdownUtils.h b/ios/RCTMarkdownUtils.h index 11916b97..4d080bb8 100644 --- a/ios/RCTMarkdownUtils.h +++ b/ios/RCTMarkdownUtils.h @@ -7,7 +7,6 @@ NS_ASSUME_NONNULL_BEGIN @property (nonatomic) RCTMarkdownStyle *markdownStyle; @property (nonatomic) NSMutableArray *blockquoteRangesAndLevels; -@property (weak, nonatomic) UIView *backedTextInputView; - (NSAttributedString *)parseMarkdown:(nullable NSAttributedString *)input withAttributes:(nullable NSDictionary*)attributes;