
Description
markdown is an agent skill for rendering assistant message text as Markdown in assistant-ui, a React toolkit for chat interfaces. It explains the two renderers that assistant-ui offers for an assistant text part. MarkdownTextPrimitive is the lightweight option built on react-markdown, and the installed MarkdownText element is its styled version. StreamdownTextPrimitive is the alternative for block-aware streaming, incomplete Markdown repair, and optional support for Shiki syntax highlighting, KaTeX maths, Mermaid diagrams and CJK text. The skill tells the agent which to choose: use the lightweight renderer for a small app or a custom react-markdown component map, and add highlighting, maths or Mermaid only when the message format needs them. It warns not to mount both renderers for the same text part. Reference files cover installing and composing MarkdownText, choosing a syntax highlighter per fenced language, configuring KaTeX and gating Mermaid until a stream completes, and using the Streamdown plugins. The skill is published in the assistant-ui skills repository on GitHub and installs with the skills command. Its listing shows all three security audits passing.…
Highlights
- Renders assistant messages as Markdown
- Lightweight and streaming renderers
- Syntax highlighting, KaTeX and Mermaid options
- Reference files for each renderer
- Guidance on choosing the renderer
Ratings & Reviews
No ratings yet
Be the first to rate markdown.
People also visit
markdown FAQ
What does this skill do?
It helps an agent render assistant message text as Markdown in assistant-ui, choosing the right renderer for the app.
How do I install it?
Run npx skills add https://github.com/assistant-ui/skills --skill markdown.
What is the difference between the two renderers?
MarkdownTextPrimitive is the lightweight react-markdown path. StreamdownTextPrimitive adds block-aware streaming and optional code, maths, Mermaid and CJK support.
Can I use both renderers together?
No. The skill says not to mount both renderers for the same text part.
Does it cover syntax highlighting?
Yes. A reference file covers installing Shiki or Prism and choosing one per fenced language.
Is it safe to install?
Gen Agent Trust Hub: Pass, Socket: Pass and Snyk: Pass.
What are the best markdown alternatives?
Popular alternatives to markdown include streamdown, tools and ai-elements. See all markdown alternatives










