Package com.mikepenz.markdown

Types

Link copied to clipboard
fun interface BulletHandler

An interface of providing use case specific un/ordered list handling.

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.

Link copied to clipboard
@Stable
interface MarkdownTypography

Represents the type scale for the 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(),     typography: MarkdownTypography = MarkdownDefaults.markdownTypography(),     flavour: MarkdownFlavourDescriptor = GFMFlavourDescriptor())

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

Properties

Link copied to clipboard
val LocalBulletListHandler: ProvidableCompositionLocal<BulletHandler>

The CompositionLocal to provide functionality related to transforming the bullet of an ordered list

Link copied to clipboard
val LocalOrderedListHandler: ProvidableCompositionLocal<BulletHandler>

The CompositionLocal to provide functionality related to transforming the bullet of an ordered list

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.