Skip to content

Introduction

AI Markdown renders Markdown in React and Vue, including AI responses that arrive a little at a time. It supports GFM, math and mixed-language text, with controls for streaming, custom components and shared references.

Start by rendering one message. Add smooth output, custom styling or document coordination when your application needs them.

Your applicationStart hereIncluded setup
React 19React quick startInstallation, CSS and a working component
Vue 3.5Vue quick startInstallation, CSS and a working Vue component
React with Mantine 9Mantine quick startTheme providers, highlighted code and diagrams

Not sure which package to install? Start with installation and framework selection. Want to try it first? Open the interactive examples.

For a chat response, append incoming text to one string and pass the complete current string to one renderer. The application handles the network connection; AI Markdown handles the rendered content.

  1. Receive text: understand input, completion and cancellation.
  2. Render a response: follow the React chat recipe or Vue streaming guide.
  3. Control the pace: add React smooth streaming or the Vue smooth component.

Document coordination is for one logical document deliberately displayed in multiple sections. A normal chat message does not need it; network packets are not separate Markdown components.

You want to…Read next
Change rendered elementsReact custom components or Vue components and styles
Adjust typographyReact typography, Vue styles or Mantine configuration
Handle mixed-language contentCJK typography
Control links and raw HTMLURL and HTML policies
Use server renderingReact SSR or Vue SSR

The base adapters render code fences as code text. Syntax highlighting and Mermaid rendering require the Mantine integration or custom components.

Start with configuration to choose the right setting. Use Find a guide for a task, or the React, Vue and Mantine references for an exact API. If something does not work, start with troubleshooting.

Adapter authors can continue to Core and Engine contracts. Development commands, architecture and release archives live under Contributing; they are not prerequisites for using the library.