react-markdown
React component that renders a Markdown string as React elements.
remarkjs.github.io/react-markdown/repositorydocs
react-markdown renders a Markdown string as React elements. It is a unified pipeline, with remark parsing the markdown and rehype handling the HTML, and it takes plugins that change how markdown is transformed and components that replace the normal HTML elements.
It follows CommonMark by default, and GitHub-flavored syntax comes from the remark-gfm plugin. The package is ESM only, so it loads with import and not require.
Worth knowing
The README says the plugins and components you use may be insecure, and recommends rehype-sanitize for content that must be completely safe.
Identity
- Status
- Active
- Maintainer
- Espen Hovlandsdal3
- Maintained by
- Individual3
- First release
- 20155
Rendering and deploy
- Install with
- npm, cdn1
Releases
Adoption
Sources
- 2026-11-16: links, Categories, Built on, Runtime, Minimum runtime, Install with
raw.githubusercontent.com/remarkjs/react-markdown/main/readme.md - 2026-11-16: links, Written in, License, GitHub stars
api.github.com/repos/remarkjs/react-markdown - 2026-11-16: Maintainer, Maintained by, License model
raw.githubusercontent.com/remarkjs/react-markdown/main/license - 2026-11-16: Current major version, Last release
api.github.com/repos/remarkjs/react-markdown/releases - 2026-11-16: First release
registry.npmjs.org/react-markdown - 2026-11-16: npm downloads a week
api.npmjs.org/downloads/range/2026-11-01:2026-11-07/react-markdown - 2026-11-16: Contributors
api.github.com/repos/remarkjs/react-markdown/contributors?per_page=1 - 2026-11-16: Dependent packages, Dependent repositories
packages.ecosyste.ms/api/v1/registries/npmjs.org/packages/react-markdown