Skip to content

Build markdown with Jetpack Compose runtime.

License

Notifications You must be signed in to change notification settings

jisungbin/compose-markdown

Repository files navigation

Compose Markdown

StringBuilder().markdown {
  H1("Hello, Compose-Markdown!")
  Quote(
    modifier = Modifier.clickable(link = "https://github.com/jisungbin/compose-markdown"),
    text = buildAnnotatedString {
      append("Build ")
      withStyle(TextStyle(italic = true)) { append("Markdown") }
      append(" with ")
      withStyle(TextStyle(fontWeight = FontWeight.Bold)) { append("Jetpack Compose runtime") }
      append("!")
    },
  )
}

WIP