Skip to content
R

react-markdown

React component to render markdown

by johnoFree

#4in UI Libraries
0In stores

Description

react-markdown is a React component that renders Markdown as React elements. You pass it a Markdown string and it returns the page content,…

Highlights

  • Renders Markdown as React components
  • Safe by default, with no dangerouslySetInnerHTML
  • Custom components for each element
  • Remark and rehype plugins
  • CommonMark compliant, GFM with a plugin

Ratings & Reviews

No ratings yet

Be the first to rate react-markdown.

People also visit

R

react-markdown

Render Markdown as React components

UI Libraries
Launch
R

react-highlight

React component for syntax highlighting

UI Libraries
Launch
R

React Native Nitro Markdown

High-performance Markdown parser for React Native using Nitro Modules and md4c

Education
Launch
R

React Markplus

A React markdown editor and previewer

Utilities
Launch
I

interweave

React library to safely render HTML, filter attributes, autowrap text

UI Libraries
Launch
R

react-contenteditable

React component representing an element with editable contents

UI Libraries
Launch

react-markdown FAQ

What is react-markdown?

It is a React component that renders a Markdown string as React elements.

Is it safe to render user Markdown?

The README says it is safe by default, because it does not use dangerouslySetInnerHTML or allow XSS attacks.

Can I use GitHub Flavored Markdown?

Yes. The README says it is 100 percent CommonMark compliant and reaches GFM with a plugin.

How do I extend it?

Use plugins from the remark and rehype ecosystems, such as math or syntax highlighting, and pass your own components to replace default elements.

What are the best react-markdown alternatives?

Popular alternatives to react-markdown include react-markdown, react-highlight and interweave. See all react-markdown alternatives

Developer Stuff

Badges