chore: more comprehensive markdown preview
Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
parent
800aa68083
commit
8b81e0a6b5
|
|
@ -112,12 +112,11 @@ fun UIMarkdown(
|
|||
)
|
||||
}
|
||||
|
||||
@Preview
|
||||
@Preview(showBackground = true)
|
||||
@Composable
|
||||
fun UIMarkdownPreview() {
|
||||
// Will not render in side preview but will render on device
|
||||
UIMarkdown(
|
||||
text = "Hello, **world**!",
|
||||
text = "Hello, **world**! <@01F1WKM5TK2V6KCZWR6DGBJDTZ> [link](https://google.com) `code`\n\n```kt\nfun main() {\n println(\"Hello, world!\")\n}\n```",
|
||||
fontSize = 16.sp,
|
||||
)
|
||||
}
|
||||
Loading…
Reference in New Issue