JetpackCompose.app Home

Markdown Composer

Author: Erik Hellman

Component capable of handing the markdown text that's passed to it. It uses CommonMarks for it's rendering. These functions will render a tree of Markdown nodes parsed with CommonMark.

To use this, you need the following two dependencies:

implementation "com.atlassian.commonmark:commonmark:0.15.2"
implementation "dev.chrisbanes.accompanist:accompanist-coil:0.2.0"

The following is an example of how to use this component:

val parser = Parser.builder().build()
val root = parser.parse(MIXED_MD) as Document
val markdownComposer = MarkdownComposer()

MarkdownComposerTheme {
    MDDocument(root)
}
Have a project you'd like to submit? Fill this form, will ya!

JetpackCompose.app Job Board

Find the best Android jobs in world-class companies. Here are some featured jobs from the job board