Skip to content
Mayank edited this page Jun 22, 2025 · 2 revisions

@m2d/react-markdown

A modern, SSR-compatible Markdown renderer for React with full MDAST/HAST access — built for customization, performance, and document generation.

✅ Highlights

  • Fully SSR-safe (no client-only hooks)
  • Supports full JSX children (not just strings)
  • Access to parsed MDAST & HAST trees via astRef
  • Drop-in remark/rehype plugin support
  • Component-level tag overrides
  • Smaller footprint (~35 kB minzipped)
  • DOCX-ready for use with mdast2docx
Clone this wiki locally