jeziellago / compose-markdown

Markdown Text for Android Jetpack Compose 📋.
MIT License
590 stars 50 forks source link

Crash with java.lang.IllegalStateException: Error: Placement happened before lookahead. #110

Open ak-ing opened 4 months ago

ak-ing commented 4 months ago

Something is wrong:

this is my some code in Chat List:

@Composable
fun ClickableMessage(
    message: MessageEntity,
    isUserMe: Boolean,
    authorClicked: (String) -> Unit
) {
    MarkdownText(
        markdown = message.content,
        style = MaterialTheme.typography.bodyLarge.copy(color = LocalContentColor.current),
        modifier = Modifier.padding(16.dp),
        linkColor = MaterialTheme.colorScheme.onPrimary
    )
}

open the chat page,Crash immediately this is log: log.txt

ak-ing commented 4 months ago

hello

jeziellago commented 4 months ago

Hi @ak-ing Could you help me sharing these info:

  1. compose-markdown version
  2. AGP version
  3. Compose version
  4. Android OS version
ak-ing commented 3 months ago

compose-markdown version:0.5.2 AGP version:8.3.2 Compose version:composeBom = "2024.05.00" it is like androidx.compose.runtime:runtime-android:1.7.0-beta01

OS version:Android13