remember Markdown State
A MarkdownState that executes the parsing of the markdown content with the MarkdownParser asynchronously.
Return
A MarkdownState instance that will parse the content and emit the result to its MarkdownState.state flow.
Parameters
The markdown content to parse.
Whether to lookup links in the parsed tree or not.
The MarkdownFlavourDescriptor to use for parsing.
The MarkdownParser to use for parsing.
The ReferenceLinkHandler to use for storing links.
Whether to parse the content immediately or not. (WARNING: This is not advised, as it will block the composition!)
A MarkdownState that executes the parsing of the markdown content with the MarkdownParser asynchronously. This version accepts a suspend function block that returns the markdown content, allowing for dynamic loading.
Return
A MarkdownState instance that will parse the content and emit the result to its MarkdownState.state flow.
Parameters
Optional keys that determine when the block should be re-executed. When any key changes, the block will be called again.
A suspend function that returns the markdown content to parse.
Whether to lookup links in the parsed tree or not.
Whether to retain the state of the MarkdownState or not, when the input changes
The MarkdownFlavourDescriptor to use for parsing.
The MarkdownParser to use for parsing.
The ReferenceLinkHandler to use for storing links.