@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.
17 lines (16 loc) • 568 B
TypeScript
import type { Snippet } from 'svelte';
interface Props {
ordered?: boolean;
start?: number;
children?: Snippet;
}
/**
* Renders a markdown list as either an `<ol>` (ordered) or `<ul>` (unordered) element.
*
* @prop {boolean} [ordered=false] - When `true`, renders an ordered `<ol>` list.
* @prop {number} [start=1] - Starting number for ordered lists (the `start` attribute).
* @prop {Snippet} [children] - List item content.
*/
declare const List: import("svelte").Component<Props, {}, "">;
type List = ReturnType<typeof List>;
export default List;