jeziellago / compose-markdown

Markdown Text for Android Jetpack Compose 📋.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Crash on displaying table

TinaT2 opened this issue · comments

commented

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)
                    )
                }
            }
        }
    }

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

commented

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

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