MathBlock

@Composable
fun MathBlock(tex: String, modifier: Modifier = Modifier)(source)

Display math rendered with the bundled, offline KaTeX (like Streamdown in AI Elements' <Response>). Falls back to the TeX source if KaTeX fails.