@expensify/react-native-live-markdown 0.1.103 → 0.1.105
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/ios/RCTMarkdownUtils.mm
CHANGED
|
@@ -147,10 +147,6 @@ using namespace facebook;
|
|
|
147
147
|
NSRange rangeForBackground = [inputString characterAtIndex:range.location] == '\n' ? NSMakeRange(range.location + 1, range.length - 1) : range;
|
|
148
148
|
[attributedString addAttribute:NSBackgroundColorAttributeName value:_markdownStyle.preBackgroundColor range:rangeForBackground];
|
|
149
149
|
// TODO: pass background color and ranges to layout manager
|
|
150
|
-
} else if (type == "h1") {
|
|
151
|
-
NSMutableParagraphStyle *paragraphStyle = [NSMutableParagraphStyle new];
|
|
152
|
-
NSRange rangeWithHashAndSpace = NSMakeRange(range.location - 2, range.length + 2); // we also need to include prepending "# "
|
|
153
|
-
[attributedString addAttribute:NSParagraphStyleAttributeName value:paragraphStyle range:rangeWithHashAndSpace];
|
|
154
150
|
}
|
|
155
151
|
}
|
|
156
152
|
|