{"repo":"md2docx/react-markdown","free":true,"listed":false,"github":"https://github.com/md2docx/react-markdown","clone":"git clone https://github.com/md2docx/react-markdown.git","description":"SSR-ready React Markdown renderer with MDAST reuse, JSX support, and unified plugin pipeline.","language":"TypeScript","stars":13,"topics":["docx","jsx","markdown","mdast","react","rehype","remark","renderer","ssr","unified"],"license":"MPL-2.0","category":"productivity","readme_excerpt":"MDX Renderer [ @m2d/react-markdown ] ✨ A modern, SSR-compatible Markdown renderer for React with full MDAST/HAST access — built for customization , performance , and document generation - docx/pdf . --- 🔥 Why @m2d/react-markdown ? @m2d/react-markdown goes beyond traditional React Markdown libraries by focusing on: - ✅ Server-side rendering (SSR) without hooks - ✅ Full JSX children support (not just strings) - ✅ Access to raw MDAST & HAST trees - ✅ Drop-in plugin support via Unified ( remark , rehype , etc.) - ✅ Custom component overrides per tag - ✅ Integration with tools like mdast2docx Compared to react-markdown , this library offers: Feature @m2d/react-markdown ✅ react-markdown ❌ -------------------------------------- ------------------------ ------------------- Full JSX support (not just strings) ✅ ❌ SSR-safe (no hooks) ✅ ✅ Client Side component with memoization ✅ ❌ MDAST + HAST access via astRef ✅ ❌ Component-level overrides ✅ ✅ Unified plugin support ✅ ✅ Tiny bundle (minzipped) 35 kB 45 kB Built-in DOCX-friendly AST output ✅ ❌ --- 📦 Installation or or --- 🚀 Server vs Client By default, this package is SSR-safe and has no client-specific hooks . ✅ Server (default): 🔁 Client (for dynamic reactivity/memoization): This version supports client-side behavior with memoization and dynamic JSX rendering. --- ⚡ Example: Rendering + Exporting DOCX Note for Server Component use you can replace useRef with custom ref object const astRef = {current: undefined} as AstRef --- 🧠 JS","default_branch":null,"files":null,"tree":[],"storefront":"/r/md2docx","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/md2docx/react-markdown/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}