Skip to content

Commit bb97412

Browse files
authored
Merge pull request #363 from mikepenz/feature/329_2
Offer API to provide `Modifier` for list item content
2 parents 146343a + d3979d0 commit bb97412

File tree

5 files changed

+30
-18
lines changed

5 files changed

+30
-18
lines changed

MIGRATION.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,11 @@ Markdown(
5454
- As a result the component spec now needs to handle depth.
5555
See [Source](https://github.com/keta1/multiplatform-markdown-renderer/blob/develop/multiplatform-markdown-renderer/src/commonMain/kotlin/com/mikepenz/markdown/compose/components/MarkdownComponents.kt#L201-L208)
5656
for details.
57+
- **Breaking Change**: The `MarkdownListItems` component now takes 2 optional lambdas
58+
- These lambdas offer the ability to provide custom `Modifier`s for the marker and the list
59+
content.
60+
- This can be helpful for example to adjust the baseline.
61+
See: https://github.com/mikepenz/multiplatform-markdown-renderer/issues/329
5762

5863
- **Behavior Change**: To account for the behavior change introduced in v0.32.0 on EOL handling a
5964
new API was introduced to bring back prior behavior

multiplatform-markdown-renderer/api/android/multiplatform-markdown-renderer.api

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ public final class com/mikepenz/markdown/compose/elements/MarkdownImageKt {
204204
}
205205

206206
public final class com/mikepenz/markdown/compose/elements/MarkdownListKt {
207-
public static final fun MarkdownBulletList (Ljava/lang/String;Lorg/intellij/markdown/ast/ASTNode;Landroidx/compose/ui/text/TextStyle;ILandroidx/compose/runtime/Composer;II)V
208-
public static final fun MarkdownListItems (Ljava/lang/String;Lorg/intellij/markdown/ast/ASTNode;ILkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V
209-
public static final fun MarkdownOrderedList (Ljava/lang/String;Lorg/intellij/markdown/ast/ASTNode;Landroidx/compose/ui/text/TextStyle;ILandroidx/compose/runtime/Composer;II)V
207+
public static final fun MarkdownBulletList (Ljava/lang/String;Lorg/intellij/markdown/ast/ASTNode;Landroidx/compose/ui/text/TextStyle;ILkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;II)V
208+
public static final fun MarkdownListItems (Ljava/lang/String;Lorg/intellij/markdown/ast/ASTNode;ILkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V
209+
public static final fun MarkdownOrderedList (Ljava/lang/String;Lorg/intellij/markdown/ast/ASTNode;Landroidx/compose/ui/text/TextStyle;ILkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;II)V
210210
public static final fun getListDepth (Lcom/mikepenz/markdown/compose/components/MarkdownComponentModel;)I
211211
}
212212

multiplatform-markdown-renderer/api/jvm/multiplatform-markdown-renderer.api

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -204,9 +204,9 @@ public final class com/mikepenz/markdown/compose/elements/MarkdownImageKt {
204204
}
205205

206206
public final class com/mikepenz/markdown/compose/elements/MarkdownListKt {
207-
public static final fun MarkdownBulletList (Ljava/lang/String;Lorg/intellij/markdown/ast/ASTNode;Landroidx/compose/ui/text/TextStyle;ILandroidx/compose/runtime/Composer;II)V
208-
public static final fun MarkdownListItems (Ljava/lang/String;Lorg/intellij/markdown/ast/ASTNode;ILkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V
209-
public static final fun MarkdownOrderedList (Ljava/lang/String;Lorg/intellij/markdown/ast/ASTNode;Landroidx/compose/ui/text/TextStyle;ILandroidx/compose/runtime/Composer;II)V
207+
public static final fun MarkdownBulletList (Ljava/lang/String;Lorg/intellij/markdown/ast/ASTNode;Landroidx/compose/ui/text/TextStyle;ILkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;II)V
208+
public static final fun MarkdownListItems (Ljava/lang/String;Lorg/intellij/markdown/ast/ASTNode;ILkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function4;Landroidx/compose/runtime/Composer;II)V
209+
public static final fun MarkdownOrderedList (Ljava/lang/String;Lorg/intellij/markdown/ast/ASTNode;Landroidx/compose/ui/text/TextStyle;ILkotlin/jvm/functions/Function1;Lkotlin/jvm/functions/Function1;Landroidx/compose/runtime/Composer;II)V
210210
public static final fun getListDepth (Lcom/mikepenz/markdown/compose/components/MarkdownComponentModel;)I
211211
}
212212

0 commit comments

Comments
 (0)