fun Markdown(content: String, colors: MarkdownColors = markdownColor(), typography: MarkdownTypography = markdownTypography(), modifier: Modifier = Modifier.fillMaxSize(), padding: MarkdownPadding = markdownPadding(), dimens: MarkdownDimens = markdownDimens(), flavour: MarkdownFlavourDescriptor = GFMFlavourDescriptor(), parser: MarkdownParser = MarkdownParser(flavour), imageTransformer: ImageTransformer = NoOpImageTransformerImpl(), annotator: MarkdownAnnotator = markdownAnnotator(), extendedSpans: MarkdownExtendedSpans = markdownExtendedSpans(), inlineContent: MarkdownInlineContent = markdownInlineContent(), components: MarkdownComponents = markdownComponents(checkbox = { MarkdownCheckBox(it.content, it.node, it.typography.text) }), animations: MarkdownAnimations = markdownAnimations(), referenceLinkHandler: ReferenceLinkHandler = ReferenceLinkHandlerImpl(), loading: @Composable (modifier: Modifier) -> Unit = { Box(modifier) }, success: @Composable (state: State.Success, components: MarkdownComponents, modifier: Modifier) -> Unit = { state, components, modifier ->
MarkdownSuccess(state = state, components = components, modifier = modifier)
}, error: @Composable (modifier: Modifier) -> Unit = { Box(modifier) }) Renders the markdown content using Material 3 styles.
The markdown content to be rendered.
The MarkdownColors to use for styling.
The MarkdownTypography to use for text styles.
The MarkdownPadding to use for padding.
The MarkdownDimens to use for dimensions.
The MarkdownFlavourDescriptor to use for parsing.
The MarkdownParser to use for parsing.
The ImageTransformer to use for transforming images.
The MarkdownAnnotator to use for annotating links.
The MarkdownExtendedSpans to use for extended spans.
The MarkdownInlineContent to use for inline content.
The MarkdownComponents to use for custom components.
The MarkdownAnimations to use for animations.
The reference link handler to be used for handling links.
Composable function to display while loading.
A composable function to be displayed with the markdown content. It receives the modifier, state and components as parameters. By default this is a Column.
Composable function to display on error.
fun Markdown(markdownState: MarkdownState, colors: MarkdownColors = markdownColor(), typography: MarkdownTypography = markdownTypography(), modifier: Modifier = Modifier.fillMaxSize(), padding: MarkdownPadding = markdownPadding(), dimens: MarkdownDimens = markdownDimens(), imageTransformer: ImageTransformer = NoOpImageTransformerImpl(), annotator: MarkdownAnnotator = markdownAnnotator(), extendedSpans: MarkdownExtendedSpans = markdownExtendedSpans(), inlineContent: MarkdownInlineContent = markdownInlineContent(), components: MarkdownComponents = markdownComponents(checkbox = { MarkdownCheckBox(it.content, it.node, it.typography.text) }), animations: MarkdownAnimations = markdownAnimations(), loading: @Composable (modifier: Modifier) -> Unit = { Box(modifier) }, success: @Composable (state: State.Success, components: MarkdownComponents, modifier: Modifier) -> Unit = { state, components, modifier ->
MarkdownSuccess(state = state, components = components, modifier = modifier)
}, error: @Composable (modifier: Modifier) -> Unit = { Box(modifier) }) Renders the markdown content using Material 3 styles.
The MarkdownState to use for parsing.
The MarkdownColors to use for styling.
The MarkdownTypography to use for text styles.
The MarkdownPadding to use for padding.
The MarkdownDimens to use for dimensions.
The ImageTransformer to use for transforming images.
The MarkdownAnnotator to use for annotating links.
The MarkdownExtendedSpans to use for extended spans.
The MarkdownInlineContent to use for inline content.
The MarkdownComponents to use for custom components.
The MarkdownAnimations to use for animations.
Composable function to display while loading.
A composable function to be displayed with the markdown content. It receives the modifier, state and components as parameters. By default this is a Column.
Composable function to display on error.
fun Markdown(state: State, colors: MarkdownColors = markdownColor(), typography: MarkdownTypography = markdownTypography(), modifier: Modifier = Modifier.fillMaxSize(), padding: MarkdownPadding = markdownPadding(), dimens: MarkdownDimens = markdownDimens(), imageTransformer: ImageTransformer = NoOpImageTransformerImpl(), annotator: MarkdownAnnotator = markdownAnnotator(), extendedSpans: MarkdownExtendedSpans = markdownExtendedSpans(), inlineContent: MarkdownInlineContent = markdownInlineContent(), components: MarkdownComponents = markdownComponents(checkbox = { MarkdownCheckBox(it.content, it.node, it.typography.text) }), animations: MarkdownAnimations = markdownAnimations(), loading: @Composable (modifier: Modifier) -> Unit = { Box(modifier) }, success: @Composable (state: State.Success, components: MarkdownComponents, modifier: Modifier) -> Unit = { state, components, modifier ->
MarkdownSuccess(state = state, components = components, modifier = modifier)
}, error: @Composable (modifier: Modifier) -> Unit = { Box(modifier) }) Renders the markdown content using Material 3 styles.
The State to use for parsing.
The MarkdownColors to use for styling.
The MarkdownTypography to use for text styles.
The MarkdownPadding to use for padding.
The MarkdownDimens to use for dimensions.
The ImageTransformer to use for transforming images.
The MarkdownAnnotator to use for annotating links.
The MarkdownExtendedSpans to use for extended spans.
The MarkdownInlineContent to use for inline content.
The MarkdownComponents to use for custom components.
The MarkdownAnimations to use for animations.
Composable function to display while loading.
A composable function to be displayed with the markdown content. It receives the modifier, state and components as parameters. By default this is a Column.
Composable function to display on error.