Markdown Success
fun MarkdownSuccess(state: State.Success, components: MarkdownComponents, modifier: Modifier = Modifier)
Renders the successfully parsed markdown content in a Column layout.
This function is used internally by the Markdown composable when the state is State.Success. It iterates through the parsed markdown nodes and renders each element using the appropriate component from the provided MarkdownComponents.
You can use this function directly if you have a custom state management system and want to render only the success state of markdown content.
Example usage:
val successState: State.Success = ... // Your parsed markdown state
val components = markdownComponents()
MarkdownSuccess(
state = successState,
components = components,
modifier = Modifier.padding(16.dp)
)Content copied to clipboard
Parameters
state
The State.Success object containing the parsed markdown content and node tree.
components
The MarkdownComponents instance containing the components to use for rendering different markdown elements.
modifier
The modifier to be applied to the container Column.