/** * Markdown rendering for `@tempots/beatui/markdown`. * * Renders Markdown content to styled HTML using micromark with optional * GFM (GitHub Flavored Markdown) support. HTML is escaped by default * for safety. * * ```ts * import { Markdown } from '@tempots/beatui/markdown' * ``` * * @module */ import { TNode, Value, Renderable } from '@tempots/dom'; export type MarkdownOptions = { content: Value; /** Escape HTML by default for safety. Set true to allow raw HTML passthrough. */ allowHtml?: Value; /** * Allow potentially dangerous protocols in links and images (e.g., `data:`, `javascript:`). * **WARNING: This is unsafe!** Enabling this opens you up to XSS attacks. * Only enable if you completely trust the markdown source. * @default false */ allowDangerousProtocol?: Value; features?: Value<{ gfm?: boolean; }>; cssInjection?: 'link' | 'none'; }; /** * Markdown component: renders Markdown to HTML using micromark. * - Escapes HTML by default (allowHtml: false) * - Applies bc-markdown typography styles for consistent Markdown rendering * - Ships as separate subpath bundle (@tempots/beatui/markdown) */ export declare function Markdown(options: MarkdownOptions, ...children: TNode[]): Renderable;