compose-richtext
2.0.0indexedCollection of Compose libraries enabling rich-text documents: CommonMark parsing, composable UI elements (Headings, BlockQuote, HorizontalRule), Material styling and a printable controller for rendering and printing.
Collection of Compose libraries enabling rich-text documents: CommonMark parsing, composable UI elements (Headings, BlockQuote, HorizontalRule), Material styling and a printable controller for rendering and printing.
Warning compose-richtext library and all its modules are very experimental and undermaintained. The roadmap is unclear at the moment. Thanks for your patience. Fork option is available as always.
A collection of Compose libraries for working with rich text formatting and documents.
richtext-ui, richtext-commonmark, and richtext-material-ui are Kotlin Multiplatform Compose Libraries.
This repo is currently very experimental and really just proofs-of-concept: there are no tests and some things might be broken or very non-performant.
Documentation is available at halilibo.com/compose-richtext.
@Composable fun App() {
val printController = rememberPrintableController()
Printable(printController) {
RichText(Modifier.background(color = Color.White)) {
Heading(0, "Title")
Text("Summary paragraph.")
HorizontalRule()
BlockQuote {
Text("A wise person once said…")
}
}
}
Button(onClick = { printController.print("README") }) {
Text("PRINT ME")
}
}
Copyright 2022 Halil Ozercan
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance the License.
You may obtain a copy of the License at
http:
Unless applicable law agreed to writing, software
distributed under the License distributed an BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express implied.
See the License the specific language governing permissions
limitations under the License.
Surfaced from shared tags and platforms — no rankings paid for.