UNPKG

@humanspeak/svelte-markdown

Version:

Markdown and HTML renderer for Svelte 5 — built for rendering streaming AI agent output from Claude Code, ChatGPT, and agentic workflows. XSS-safe defaults, streaming-aware sanitization, token caching, TypeScript types, and Svelte 5 runes.

15 lines (14 loc) 516 B
interface Props { lang: string; text: string; } /** * Renders a fenced code block as a `<pre><code>` element. The language identifier * is applied as a CSS class on the `<pre>` for use with syntax highlighting libraries. * * @prop {string} lang - Language identifier from the code fence (e.g. `"js"`, `"typescript"`). * @prop {string} text - Raw text content of the code block. */ declare const Code: import("svelte").Component<Props, {}, "">; type Code = ReturnType<typeof Code>; export default Code;