Skip to content

Commit

Permalink
Revert some changes
Browse files Browse the repository at this point in the history
  • Loading branch information
tomekzaw committed Oct 10, 2024
1 parent e8c71ac commit 8404341
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions apple/MarkdownLayoutManager.mm
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@
#import <objc/runtime.h>
#import <RNLiveMarkdown/MarkdownLayoutManager.h>

@implementation MarkdownLayoutManager
Expand All @@ -9,7 +8,7 @@ - (void)drawBackgroundForGlyphRange:(NSRange)glyphsToShow atPoint:(CGPoint)origi
[self enumerateLineFragmentsForGlyphRange:glyphsToShow usingBlock:^(CGRect rect, CGRect usedRect, NSTextContainer * _Nonnull textContainer, NSRange glyphRange, BOOL * _Nonnull stop) {
__block BOOL isBlockquote = NO;
__block int currentDepth = 0;
RCTMarkdownUtils *markdownUtils = objc_getAssociatedObject(self, @selector(markdownUtils));
RCTMarkdownUtils *markdownUtils = [self valueForKey:@"markdownUtils"];
[markdownUtils.blockquoteRangesAndLevels enumerateObjectsUsingBlock:^(NSDictionary *item, NSUInteger idx, BOOL * _Nonnull stop) {
NSRange range = [[item valueForKey:@"range"] rangeValue];
currentDepth = [[item valueForKey:@"depth"] unsignedIntegerValue];
Expand Down

0 comments on commit 8404341

Please sign in to comment.