chore: more comprehensive markdown preview

Signed-off-by: Infi <infi@infi.sh>
This commit is contained in:
Infi 2023-09-17 18:18:31 +02:00
parent 800aa68083
commit 8b81e0a6b5
1 changed files with 2 additions and 3 deletions

View File

@ -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,
)
}