# remarkjs/react-markdown

Markdown component for React

Repository: https://github.com/remarkjs/react-markdown
Canonical: https://ross.abutalabs.com/products/react-markdown
Homepage: https://remarkjs.github.io/react-markdown/
Language: JavaScript
License: MIT
License Family: permissive
Topics: markdown, commonmark, gfm, react, remark
Last push: 2025-04-21T10:10:50+00:00

## Health v2 (maintenance only)
Score: 42/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 17, release rhythm 40, longevity 100
- inputs: {"age_days": 4125, "days_push": 499, "days_rel": 544, "gap_med": 3, "n_releases_24m": 6}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 15864, forks 918 (observed 2026-08-28T04:11:14.286214+00:00)

## What it is
A React component that safely renders markdown strings to React elements using the unified/remark ecosystem. It supports CommonMark and GFM, custom component overrides, and remark/rehype plugins without dangerouslySetInnerHTML.

## Use cases
- render markdown in react
- display user-generated markdown safely
- convert markdown to react components
- render gfm markdown with syntax highlighting
- avoid dangerouslySetInnerHTML for markdown
- customize markdown element rendering

## When to choose
- you need safe markdown rendering in React without XSS risk
- you want to swap markdown elements for custom React components
- you need plugin support for math, syntax highlighting, or GFM

## When to avoid
- you need markdown rendering outside React
- you want to parse markdown to HTML strings rather than React elements

## Facets
- artifact type: library
- maturity: stable
- function: markdown, ui-components, parser, templating
- domain: frontend, web-development, documentation
- platform: browser
- tags: react, remark, commonmark, gfm, unified, xss-safe, nodejs, web-server

## Member repositories
- remarkjs/react-markdown (main) score 42

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:14.286214+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T17:05:20.842925+00:00, confidence not recorded.
  - readme: https://github.com/remarkjs/react-markdown (fetched 2026-08-28T04:11:14.286214+00:00, sha 2b4a295f98f0)
  - homepage: https://remarkjs.github.io/react-markdown/ (fetched 2026-08-29T08:03:33.187627+00:00, sha 6d9d58bba366)
  - registry_npm: https://registry.npmjs.org/react-markdown (fetched 2026-08-29T08:03:33.190022+00:00, sha f936cb21a54b)
- Data as of 2026-08-30T08:39:29.467469+00:00.
