You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/compose/elements/MarkdownCode.kt
Copy file name to clipboardExpand all lines: multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/compose/elements/MarkdownText.kt
+1-3Lines changed: 1 addition & 3 deletions
Original file line number
Diff line number
Diff line change
@@ -90,12 +90,10 @@ fun MarkdownText(
90
90
}
91
91
92
92
// forward the `onTextLayout` to `extended-spans` if provided
93
-
val onTextLayout: ((TextLayoutResult, Color?) ->Unit)?=if (extendedSpans!=null) {
93
+
val onTextLayout: ((TextLayoutResult, Color?) ->Unit)?= extendedSpans?.let {
94
94
{ layoutResult, color ->
95
95
extendedSpans.onTextLayout(layoutResult, color)
96
96
}
97
-
} else {
98
-
null
99
97
}
100
98
101
99
// call drawBehind with the `extended-spans` if provided
0 commit comments