Package com.mikepenz.markdown

Types

Link copied to clipboard
@Stable
interface MarkdownColors

Represents the colors of the text, background and content used in a markdown component.

Link copied to clipboard
object MarkdownDefaults

Contains the default values used by Markdown.

Functions

Link copied to clipboard
@Composable
fun Code(code: String, modifier: Modifier = Modifier, colors: MarkdownColors)

A composable that receives some source code as String and renders it in the UI.

Link copied to clipboard
@Composable
fun fetchImage(url: String): ImageBitmap?
Link copied to clipboard
fun ASTNode.findChildOfTypeRecursive(type: IElementType): ASTNode?

Find a child node recursive

Link copied to clipboard
suspend fun loadPicture(url: String): ImageBitmap?
Link copied to clipboard
@Composable
fun Markdown(content: String, modifier: Modifier = Modifier.fillMaxSize(), colors: MarkdownColors = MarkdownDefaults.markdownColors(), flavour: MarkdownFlavourDescriptor = GFMFlavourDescriptor())

A composable that receives markdown content as String and renders it in the UI.

Properties

Link copied to clipboard
const val TAG_IMAGE_URL: String

Tag used to indicate an image url for inline content. Required for rendering.

Link copied to clipboard
const val TAG_URL: String

Tag used to indicate an url for inline content. Required for click handling.