Package-level declarations
Types
Link copied to clipboard
interface CustomBlockHandler
Handler for custom markdown block types (e.g., ::: note, ::: card).
Link copied to clipboard
data class MarkdownConfig(val customBlocks: Map<String, CustomBlockHandler> = CustomBlockHandler.default, val internalLinkPattern: Regex? = null, val onInternalLink: (String) -> Page?? = null)
Configuration for markdown rendering.
Link copied to clipboard
AST representation of parsed markdown content. Supports both block-level and inline elements.
Link copied to clipboard
interface MarkdownParseContext
Provides access to markdown parsing capabilities for custom block handlers. This allows custom handlers to parse parts of their content as standard markdown.
Link copied to clipboard
class MarkdownParser(customBlocks: Map<String, CustomBlockHandler> = emptyMap()) : MarkdownParseContext
Custom markdown parser that converts markdown text into an AST. Supports standard markdown features plus custom extensions:
Link copied to clipboard
interface MarkdownRenderContext
Provides access to markdown rendering capabilities for custom block handlers. This allows custom handlers to render child nodes and access configuration.
Functions
Link copied to clipboard
Renders markdown content as KiteUI views.
Link copied to clipboard
fun ViewWriter.markdownDynamic(content: ReactiveContext.() -> String, config: MarkdownConfig = MarkdownConfig.Default)
Renders reactive markdown content, re-rendering when the content changes.