Skip to content

Files

Latest commit

e013c4c · Nov 12, 2023

History

History

compose-markdown

Folders and files

NameName
Last commit message
Last commit date

parent directory

..
Mar 3, 2023
Mar 26, 2021
Nov 12, 2023
Mar 3, 2023

compose-markdown

This library provides a Jetpack Compose Text component MarkdownText for rendering markdown in a @Composable hierarchy. It follows the Commonmark specification and supports GitHub flavored markdown elements as well.

It uses intellij-markdown under the hood for parsing markdown content into an abstract syntax tree and then uses the AnnotatedString API to display the parsed content onto a Text composable.

In order to display inline content such as images, links, block quotes, checkboxes, etc. this library uses the InlineTextContent API to insert @Composable hierarchies within a Text composable itself.

Check out compose-markdown-demo for examples usages!