markdown
Markdown renderer for AI chat content
AImarkdown.cssmarkdown.js
Installation
$
npx skeehn add markdownPreview
The Markdown component renders markdown strings as styled HTML. Import and pass content as a prop.
Props
| Prop | Type | Default | Description |
|---|---|---|---|
| content | string | — | Markdown content string |
Usage
markdown.tsx
1import { Markdown } from '@skeehn/react';23export function Content() {4 return (5 <Markdown content="# Hello\n\nThis is **markdown** content." />6 );7}