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) 459 B
import type { Snippet } from 'svelte'; interface Props { children?: Snippet; listItemIndex?: number; } /** * Renders a single list item as an `<li>` element. * * @prop {Snippet} [children] - Content of the list item. * @prop {number} [listItemIndex] - Zero-based index of this item within its parent list. */ declare const ListItem: import("svelte").Component<Props, {}, "">; type ListItem = ReturnType<typeof ListItem>; export default ListItem;