@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.
2 lines (1 loc) • 435 B
JavaScript
import{c as d}from"./chunk-YLKYTARQ.mjs";import{Fragment as g}from"react";import{jsx as n}from"react/jsx-runtime";var b=({children:r,wrapper:o,remarkPlugins:M,rehypePlugins:m,remarkRehypeOptions:k,astRef:s,components:c,skipHtml:e,...t})=>{let f=o!=null?o:Object.keys(t).length?"div":g;return n(f,{...t,children:n(d,{remarkPlugins:M,rehypePlugins:m,remarkRehypeOptions:k,astRef:s,components:c,skipHtml:e,children:r})})};export{b as a};