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.

17 lines (16 loc) 508 B
import type { Snippet } from 'svelte'; interface Props { href?: string; title?: string; children?: Snippet; } /** * Renders a markdown link (`[text](url "title")`) as an `<a>` element. * * @prop {string} [href=''] - Link destination URL. * @prop {string} [title] - Tooltip text displayed on hover. * @prop {Snippet} [children] - Rendered inline content of the link. */ declare const Link: import("svelte").Component<Props, {}, "">; type Link = ReturnType<typeof Link>; export default Link;