MarkdownContent
Renders text content that may contain markdown formatting.
The SDK calls this for text messages, terms-and-conditions labels, and other components that display markdown-formatted text. Override this to supply your own markdown renderer or to render the text as plain content.
Parameters
text
The raw text string, which may include markdown syntax.
content
The SDK's default markdown renderer. Call it to retain default rendering.
Samples
uiClient.viewComponents = object : ViewComponents {
@Composable
override fun MarkdownContent(
text: String,
content: @Composable () -> Unit
) {
Text(text = text, style = MaterialTheme.typography.bodyMedium)
}
}Content copied to clipboard