MarkdownState

Interface for a state that handles the parsing of markdown content with the MarkdownParser.

Properties

Link copied to clipboard
abstract val links: StateFlow<Map<String, String?>>

The links found in the markdown content

Link copied to clipboard
abstract val state: StateFlow<State>

The current state of the markdown parsing

Functions

Link copied to clipboard
abstract suspend fun parse(): State

Parses the markdown content asynchronously using the Default dispatcher. When a result is available it will be emitted to the state flow.