jeziellago / compose-markdown

Markdown Text for Android Jetpack Compose 📋.
MIT License
567 stars 47 forks source link

Crash on displaying table #63

Closed TinaT2 closed 10 months ago

TinaT2 commented 10 months ago

It will crash if I try to display a single table in the markdown text. Here is the sample code:

val body =
        """

    Markdown | Table | Extension
    --- | --- | ---
    *renders* | `beautiful images` | ![random image](https://picsum.photos/seed/picsum/400/400 "Text 1")
    1 | 2 | 3

    """.trimIndent()
  Box(
                modifier = Modifier
                    .width(IntrinsicSize.Max)
                    .defaultMinSize(180.dp)
                    .padding(8.dp)
            ) {
                Column {
                    ...
                    MarkdownText(
                        markdown = body,
                        style = MaterialTheme.typography.bodyLarge,
                        modifier = Modifier.padding(8.dp)
                    )
                }
            }
        }
    }
jeziellago commented 10 months ago

Hi @TinaT2! Could you please share the stacktrace of the crash?

TinaT2 commented 10 months ago

Hi @TinaT2! Could you please share the stacktrace of the crash?

Yesterday it was crashing for me but now just shows me an empty view. If I get the stacktrace I'll send you. image

jeziellago commented 10 months ago

Ok. I'm closing this issue. Feel free to open a new one in case you got errors.