Skip to content

OPEN SOURCE · REACT + VUE

Markdown for AI,
built for the stream.

Render streaming Markdown in React and Vue. GFM, math and multilingual text, with your own components or Mantine for code highlighting and diagrams.

STREAMING / MATH / MULTILINGUAL

AI MarkdownStreaming illustration

Turn this idea into a clear answer.

A good answer takes shape.

From the first sentence, keep your answer clear and structured.

  • Give ideas structure with headings and lists
  • Make code and links fit your interface
  • Make room for English, 中文 and 日本語
Try your Markdown in the playground

01 / FROM TEXT TO INTERFACE

One string. A growing response.

Append incoming text to one string and pass it to your renderer. Your application handles the connection; AI Markdown handles the content.

Explore streaming →
import AIMarkdown, {
AIMarkdownStreamingCursor,
} from '@ai-markdown/react';
import '@ai-markdown/react/typography/default.css';
import 'katex/dist/katex.min.css';
type Props = { text: string; streaming: boolean };
export function Message({ text, streaming }: Props) {
return (
<AIMarkdown
content={text}
streaming={streaming}
streamingCursor={AIMarkdownStreamingCursor}
/>
);
}

Pass the accumulated text and producer state from your parent component. See the quick start for dependencies and framework setup.

Set up React →

02 / CHOOSE YOUR STARTING POINT

One engine. Your framework.

03 / BUILD YOUR EXPERIENCE

Start with what you’re building.

01

Streaming chat

Render incoming responses, then add smooth output and a streaming cursor.

React →Vue →
02

Rich content

Render tables, math and mixed-language text. Add code highlighting and diagrams with Mantine or custom components.

Explore supported syntax →
03

Your own interface

Replace links, code blocks and other elements. Make Markdown feel at home in your product.

Find your configuration →

START WITH ONE MESSAGE

Give your next answer a better home.

Choose your framework →