Big News: Socket raises $60M Series C at a $1B valuation to secure software supply chains for AI-driven development.Announcement
Sign In

@assistant-ui/react-markdown

Package Overview
Dependencies
Maintainers
2
Versions
96
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@assistant-ui/react-markdown

Markdown rendering for assistant-ui

latest
Source
npmnpm
Version
0.14.1
Version published
Weekly downloads
429K
-12.4%
Maintainers
2
Weekly downloads
 
Created
Source

@assistant-ui/react-markdown

react-markdown integration for @assistant-ui/react. Renders the assistant's markdown output as React components inside MessagePrimitive.Parts.

When to use this

PackageBest for
@assistant-ui/react-markdownLightweight rendering; bring your own syntax highlighter.
@assistant-ui/react-streamdownFeature-rich with built-in Shiki, KaTeX, and Mermaid.
@assistant-ui/react-syntax-highlighterPair with react-markdown when you only need code-block highlighting.

Installation

npm install @assistant-ui/react @assistant-ui/react-markdown react-markdown remark-gfm

Usage

import { MarkdownTextPrimitive } from "@assistant-ui/react-markdown";
import remarkGfm from "remark-gfm";

export const MarkdownText = () => (
  <MarkdownTextPrimitive remarkPlugins={[remarkGfm]} className="aui-md" />
);

Plug <MarkdownText /> into MessagePrimitive.Parts as the Text component to render markdown for every text part.

Full reference at assistant-ui.com/docs/ui/markdown.

Keywords

markdown

FAQs

Package last updated on 25 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts