MarkdownText - Jetpack Compose
Markdown Text for Android Jetpack Compose.
Markdown
- HTML
- Image
- Highlight
- Linkfy
- Table
Setup
Configure root build.gradle
:
allprojects {
repositories {
...
maven { url 'https://jitpack.io' }
}
}
Add dependency into build.gradle
:
dependencies {
implementation 'com.github.jeziellago:compose-markdown:0.1.0'
}
How to use
val markdown = """
# Sample
* Markdown
* [Link](https://example.com)
![Image](https://example.com/img.png)
<a href="https://www.google.com/">Google</a>
"""
@Composable
fun ExampleContent() {
MarkdownText(markdown = markdownContent)
}