import { defineWebComponent } from './define'; import { Markdown } from '../components/markdown'; import { ChatConfig, useChatConfig, type ProseSize } from '../primitives/chat-config'; interface Props extends Record { /** The markdown source to render. */ content: string; /** Text/markdown sizing. */ proseSize?: ProseSize; /** Shiki theme for fenced code blocks. */ codeTheme?: string; /** Disable syntax highlighting (no Shiki loads). */ codeHighlight?: boolean; } /** * `` — renders markdown (with fenced-code syntax highlighting) as * a standalone element. Content via the `content` property; sizing/highlighting * via attributes. */ defineWebComponent('kc-markdown', { content: '', proseSize: 'sm', codeTheme: 'github-dark-dimmed', codeHighlight: true, }, (props, { flag }) => { const outer = useChatConfig(); return ( ); });