@md2docx/react-markdown
Version:
A modern, SSR-friendly React Markdown renderer that preserves the MDAST tree for reuse (e.g., mdast2docx), supports full JSX children, unified plugins, and component overrides.
11 lines (10 loc) • 471 B
TypeScript
import { MdProps } from "../../utils";
/**
* The Markdown renderer component.
* Provides a safe, SSR-compatible way to render markdown with support for:
* - Custom wrappers
* - Plugin pipelines (remark + rehype)
* - Component overrides
* - Optional raw HTML stripping
*/
export declare const Md: ({ children, wrapper, remarkPlugins, rehypePlugins, remarkRehypeOptions, astRef, components, skipHtml, ...props }: MdProps) => import("react/jsx-runtime").JSX.Element;