qmetrics.net

react-markdown

Safe React renderer for Markdown and GFM plugins

Frameworks & PlatformsDesktop/CLI app
react-markdown screenshot

react-markdown turns Markdown strings into React elements without dangerouslySetInnerHTML. It uses remark and rehype plugins for GFM, syntax highlighting, and optional HTML handling.

Overview

react-markdown is a React component that accepts a Markdown string and produces a React element tree. It avoids injecting raw HTML by default and builds a virtual DOM so React can update only what changed when content edits.

Processing follows the unified pipeline: Markdown parses to an mdast tree, remark plugins transform it, remark-rehype converts to hast, rehype plugins adjust HTML, and custom components map tags to React elements. CommonMark compliance is the default; GitHub Flavored Markdown features such as tables, task lists, strikethrough, and autolinks arrive through plugins like remark-gfm.

Developers can swap components for headings, links, code blocks, and other tags, attach remark and rehype plugins, filter allowed elements, and customize URL sanitization. Separate exports support synchronous rendering, async plugins on the server, and hook-based client rendering with fallbacks.

The package is ESM-only and targets maintained Node releases plus modern browsers via bundlers. Security guidance recommends rehype-sanitize when enabling raw HTML plugins such as rehype-raw.

Key features

  • Markdown to React elements without raw HTML by default
  • remark and rehype plugin pipeline
  • Custom component mapping for Markdown tags
  • Optional GFM via remark-gfm
  • Configurable URL transform and element filters
  • Sync, async, and hooks-based render modes
  • CommonMark-oriented parsing via micromark
  • Plugin ecosystem for math and highlighting

Use cases

  • Rendering user Markdown in React apps
  • Docs or comment UI with GFM tables
  • Custom-styled Markdown headings and links
  • Syntax-highlighted code blocks via rehype plugins
  • Sanitized HTML Markdown when explicitly enabled

Tags

Similar software

ECC

Open-source agent engineering toolkit for coding harnesses

ECC adds planning, verification, review, memory, skills, and security scanning to coding agents such as Claude Code, Codex, and Cursor. It installs as plugins, packages, and managed adapters across multiple harnesses.

★ 311.7k⟳ 8 days agoMIT
Frameworks & PlatformsDesktop/CLI app

React

JavaScript library for web and native user interfaces

React helps developers build interfaces from reusable components that manage their own state. Views update declaratively when underlying data changes.

★ 253k⟳ 2 days agoMIT
Frameworks & PlatformsDesktop/CLI app

Flutter

Open-source UI framework for multi-platform apps from one codebase

Flutter is an SDK for building user experiences for mobile, web, and desktop from a single codebase. It uses the Dart language and compiles to native machine code or web targets.

★ 181.5k⟳ todayBSD-3-Clause
Open Source Alternative to:Ionic Enterprise

Bootstrap

Responsive HTML, CSS, and JavaScript front-end toolkit

Bootstrap supplies CSS, JavaScript, and Sass-based styles for building responsive, mobile-first sites. It ships prebuilt grid layouts, UI components, and optional JavaScript plugins.

★ 175.1k⟳ 2 days agoMIT

Langflow

Visual low-code builder for AI agents and workflows

Langflow is a visual builder for AI agents and workflows. Flows can be customized in Python and deployed as an API or as an MCP server, with support for major LLMs and vector databases.

★ 157k⟳ todayMIT
Open Source Alternative to:Relevance AIVoiceflow

LangChain

Framework for agents and LLM-powered applications

LangChain helps developers chain interoperable components and integrations to build agents and LLM-powered applications. It offers a standard interface for models, embeddings, vector stores, and related pieces.

★ 150.1k⟳ 2 days agoMIT