Tracking issue from #105
var overrideLinkInteractionListener by rememberSaveable { mutableStateOf(true) }
val linkInteractionListener = remember(overrideLinkInteractionListener) {
if (overrideLinkInteractionListener) LinkInteractionListener {
Toast.makeText(
this@MainActivity,
"Clicked annotation: $it",
Toast.LENGTH_SHORT
).show()
} else null
}
MarkdownDocument(
linkInteractionListener = linkInteractionListener // Text doesn't update when this is dynamically updated
)
Think adding more keys to the remember {} call when building the inline text content should suffice
Tracking issue from #105
Think adding more keys to the
remember {}call when building the inline text content should suffice