/** * RichMarkdownRenderer — the content composition over the unified * `MarkdownEngine`: RuntimeProvider + shortcodes + embed overrides + * fetch-based internal-link resolver + `article` typography. * * This IS the real component (the old 1223-line standalone implementation * was deleted in the unification). Public prop surface is unchanged, so * every hub/app call site compiles untouched. Deltas vs the old * implementation are the ones reviewed in the unification plan: the * sanitize stack + tag-escape pre-pass now apply to content surfaces * (`extraAllowedHtmlTags={['video','source']}` keeps authored video * working), the engine is memoized, and the dead light-mode branches are * gone. */ import React from 'react'; import { type MarkdownEngineProps } from '../engine'; import { type RichMarkdownRuntime } from '../../../embeds/rich-markdown-runtime'; /** * The engine props this composition OWNS and therefore does not forward: * shortcode preprocessing, the embed component map, the `article` text * preset, the fetch link resolver, the rich tag allowlist, and streaming * (authored content is never streamed). */ type RichOwnedEngineProps = 'extraAllowedHtmlTags' | 'preprocessContent' | 'componentOverrides' | 'textSize' | 'onResolveLink' | 'additionalRemarkPlugins' | 'streaming'; /** * Derived from `MarkdownEngineProps` rather than hand-copied. The previous * shape restated 7 engine props here and a THIRD time in `InnerProps`, so * every engine prop doc/type change had to be mirrored in three places (and * a missed mirror type-checks fine while silently dropping the prop). */ export interface RichMarkdownRendererProps extends Partial, Omit { /** Source for resolving internal links (default: 'openframe-docs'). Registry id from DOC_SOURCES. */ resolveSource?: string; /** Path of the internal link-resolver endpoint. Default '/api/docs/resolve-link'. */ resolveLinkEndpointUrl?: string; } /** Memoized — see the engine's memo rationale. */ export declare const RichMarkdownRenderer: React.NamedExoticComponent; export {}; //# sourceMappingURL=rich-markdown-renderer.d.ts.map