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.

21 lines (20 loc) 558 B
/** * Type definitions for the Svelte Markdown component. * * This module provides TypeScript type definitions for the core functionality * of the Svelte Markdown parser and renderer. It defines the primary interface * for component props and integrates with the marked library's token system. * * Typical usage example: * ```typescript * import type { SvelteMarkdownProps } from './types'; * * const markdownProps: SvelteMarkdownProps = { * source: "# Hello World", * isInline: false * }; * ``` * * @packageDocumentation */ export {};