mikepenz / multiplatform-markdown-renderer

Markdown renderer for Kotlin Multiplatform Projects (Android, iOS, Desktop), using Compose.
https://mikepenz.github.io/multiplatform-markdown-renderer/
Apache License 2.0
417 stars 27 forks source link

Markdown not work in Kotlin Multiplatform Project android, ios, desktop, wasm #165

Closed Coding-Meet closed 4 months ago

Coding-Meet commented 4 months ago

I try markdown implement in my Kotlin Multiplatform Project android, ios, desktop, wasm.

but not work this error show

image

image

Code: first i add dependency

image

App.kt

  Box(  Modifier.fillMaxSize() ) {
                    Markdown(
                        content = """
                    ### What's included 🚀

                    - Super simple setup
                    - Cross-platform ready
                    - Lightweight
                    """.trimIndent(),
                        colors = DefaultMarkdownColors(
                            text = whiteColor,
                            codeText = whiteColor,
                            inlineCodeText = whiteColor,
                            linkText = Color.Blue,
                            codeBackground = lightBackgroundColor,
                            inlineCodeBackground = lightBackgroundColor,
                            dividerColor = Color.Gray
                        ),
                        typography = DefaultMarkdownTypography(
                            TextStyle.Default, TextStyle.Default,
                            TextStyle.Default, TextStyle.Default, TextStyle.Default,
                            TextStyle.Default, TextStyle.Default,
                            TextStyle.Default, TextStyle.Default, TextStyle.Default,
                            TextStyle.Default, TextStyle.Default, TextStyle.Default,
                        ),
                    )
   }
mikepenz commented 4 months ago

Which version of compose are you using?

Coding-Meet commented 4 months ago

1.5.4

mikepenz commented 4 months ago

Since 0.20.0 this library users 1.6.10 -> https://github.com/mikepenz/multiplatform-markdown-renderer/releases/tag/v0.20.0

Coding-Meet commented 4 months ago

thanks it works