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
[JEWEL-941] Reducing space used by images on markdown image error
- When the line contains only images, replaced the Text component with
FlowRow
- Using a flow row we can skip the Paragraph component that was taking
extra space
Copy file name to clipboardExpand all lines: platform/jewel/markdown/core/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/ImageRendererExtension.kt
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -23,5 +23,5 @@ public interface ImageRendererExtension {
23
23
* @param image The image data, containing information like the image URL and alt text.
24
24
* @return An [InlineTextContent] that will be embedded in the text flow, which will be used to display the image.
Copy file name to clipboardExpand all lines: platform/jewel/markdown/core/src/main/kotlin/org/jetbrains/jewel/markdown/rendering/DefaultMarkdownBlockRenderer.kt
Copy file name to clipboardExpand all lines: platform/jewel/markdown/extensions/images/src/main/kotlin/org/jetbrains/jewel/markdown/extensions/images/Coil3ImageRendererExtensionImpl.kt
+9-1Lines changed: 9 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -45,10 +45,11 @@ internal class Coil3ImageRendererExtensionImpl(private val imageLoader: ImageLoa
45
45
* @return An [InlineTextContent] that can be used by a `Text` or `BasicText` composable to render the image inline.
Copy file name to clipboardExpand all lines: platform/jewel/markdown/extensions/images/src/test/kotlin/org/jetbrains/jewel/markdown/extensions/images/Coil3ImageRendererExtensionImplTest.kt
0 commit comments