We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ee5cf96 commit bda7299Copy full SHA for bda7299
1 file changed
ios/renderer/ListItemRenderer.m
@@ -110,12 +110,9 @@ - (void)renderNode:(MarkdownASTNode *)node into:(NSMutableAttributedString *)out
110
style.firstLineHeadIndent = totalIndent;
111
style.headIndent = totalIndent;
112
113
- // Apply line height if configured
114
- UIFont *currentFont = [output attribute:NSFontAttributeName
115
- atIndex:range.location
116
- effectiveRange:NULL];
117
- if (lineHeightConfig > 0 && currentFont) {
118
- style.lineHeightMultiple = lineHeightConfig / currentFont.pointSize;
+ if (lineHeightConfig > 0) {
+ style.minimumLineHeight = lineHeightConfig;
+ style.maximumLineHeight = lineHeightConfig;
119
}
120
121
NSMutableDictionary *attributesToApply = [metadata mutableCopy];
0 commit comments