UNPKG

@m2d/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) 474 B
import { MdxProps } 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 Mdx: ({ children, wrapper, remarkPlugins, rehypePlugins, remarkRehypeOptions, astRef, components, skipHtml, ...props }: MdxProps) => import("react/jsx-runtime").JSX.Element;