# react-markdown

> React component to render Markdown

Source: https://talira.ai/catalog/react-markdown-jej89yf3
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Library
- Categories: [developer tools / parsing / markdown](https://talira.ai/categories/developer-tools/parsing/markdown)
- Licence: MIT[^1]
- Pricing: Free and open source[^1]
- Pricing notes: Free and open source.
- Free tier: yes[^1]
- Plugins: yes[^2]
- Backed by: [unified collective](https://talira.ai/orgs/unified-collective.md)

react-markdown is a React component that renders Markdown safely, without `dangerouslySetInnerHTML`, so Markdown from users can't inject scripts. It's 100% CommonMark compliant, and GFM (tables, task lists, strikethrough, autolinks) comes with the remark-gfm plugin. You pass your own components to replace any element (a syntax-highlighted `<code>`, a custom `<h2>`), and remark and rehype plugins add math, raw HTML handling and more. It's built on the unified collective's remark and rehype, and has async and hooks variants for plugins that need them.

## Links

- Website: https://remarkjs.github.io/react-markdown/
- GitHub: https://github.com/remarkjs/react-markdown

## Problems it solves

- render Markdown safely in a React app without dangerouslySetInnerHTML
- show Markdown written by users in React without XSS
- use my own React components for the headings and code blocks in rendered Markdown
- render GitHub-flavored Markdown tables in React
- add math and syntax highlighting to Markdown rendered in React

## Features

- safe by default: no dangerouslySetInnerHTML
- 100% CommonMark, GFM with remark-gfm
- custom components for any element
- remark and rehype plugins
- MarkdownAsync and MarkdownHooks for async plugins
- URL transform for links and images

## Capabilities

- Takes plugins: plan not known

## Trust

Overall: 0.32 out of 1.
Signals: backing 0.30, extensibility 0.20.

- backed by unified collective
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Alternatives

- [markdown-to-jsx](https://talira.ai/catalog/markdown-to-jsx-y6s8rp7w.md): A fast, versatile Markdown toolchain for React and more
- [Marked](https://talira.ai/catalog/marked-p0r09a5x.md): A Markdown parser and compiler, built for speed
- [markdown-it](https://talira.ai/catalog/markdown-it-f72jqe7v.md): Markdown parser done right: fast and easy to extend

## Sources

[^1]: https://github.com/remarkjs/react-markdown/blob/main/license (checked 23 Nov 2026)
[^2]: https://github.com/remarkjs/react-markdown (checked 23 Nov 2026)
