Overview¶
Compose Richtext is a collection of Compose libraries for working with rich text formatting and documents. It includes a full feature markdown rendering library that conforms to commonmark specification.
richtext-ui
, richtext-markdown
, richtext-commonmark
, and richtext-ui-material
|richtext-ui-material3
are Kotlin Multiplatform(KMP) Compose Libraries with the exception of iOS.
All these modules can be used in Android and Desktop Compose apps.
Each library is documented separately, see the navigation menu for the list. This site also includes an API reference.
Warning
This project is currently on its way to reach 1.0.0
release. The timeline is not clear and the release date will remain TBD for a while.
There are no tests and some things might be broken or very non-performant.
The API may also change between releases without deprecation cycles.
Getting started¶
These libraries are published to Maven Central, so just add a Gradle dependency:
dependencies {
implementation("com.halilibo.compose-richtext:<LIBRARY-ARTIFACT>:${richtext_version}")
}
There is no difference for KMP artifacts. For instance, if you are adding richtext-ui
to a Kotlin Multiplatform module
val commonMain by getting {
dependencies {
implementation("com.halilibo.compose-richtext:richtext-ui:${richtext_version}")
}
}
Library Artifacts¶
The LIBRARY_ARTIFACT
s for each individual library can be found on their respective pages.
Samples¶
Please check out Android and Desktop projects to see various use cases of RichText in both platforms.