Skip to content

Commit bda7299

Browse files
authored
fix(ios): update line height configuration in ListItemRenderer to use the same approach as paragraph (#122)
1 parent ee5cf96 commit bda7299

1 file changed

Lines changed: 3 additions & 6 deletions

File tree

ios/renderer/ListItemRenderer.m

Lines changed: 3 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -110,12 +110,9 @@ - (void)renderNode:(MarkdownASTNode *)node into:(NSMutableAttributedString *)out
110110
style.firstLineHeadIndent = totalIndent;
111111
style.headIndent = totalIndent;
112112

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;
113+
if (lineHeightConfig > 0) {
114+
style.minimumLineHeight = lineHeightConfig;
115+
style.maximumLineHeight = lineHeightConfig;
119116
}
120117

121118
NSMutableDictionary *attributesToApply = [metadata mutableCopy];

0 commit comments

Comments
 (0)