jeziellago / compose-markdown

Markdown Text for Android Jetpack Compose 📋.
MIT License
568 stars 48 forks source link

onLinkClicked doesn't run with String #46

Closed ohwittmannone closed 1 year ago

ohwittmannone commented 1 year ago

I have a MarkdownText as below, I want to launch an in app browser when I click on an embedded link but it never runs. If I don't include onLinkClicked, it still does not open a browser. I've also tried it with disableLinkMovementMethod set to true and false.

MarkdownText(
            modifier = Modifier.padding(bottom = space32),
            markdown = text,
            style = ThemedTypography.bodyMedium,
            onLinkClicked = {
                actionDispatcher.dispatchAction(ShowUrl(it))
            }
        )