humanspeak/svelte-markdown
104 stars ยท Last commit 2026-05-29
๐ Markdown and HTML renderer for Svelte 5 โ built for streaming AI agent output from Claude Code, ChatGPT, and agentic workflows. XSS-safe defaults, token caching, TypeScript types.
README preview
# @humanspeak/svelte-markdown A powerful, customizable markdown renderer for Svelte with TypeScript support. Built as a successor to the original svelte-markdown package by Pablo Berganza, now maintained and enhanced by Humanspeak, Inc. [](https://www.npmjs.com/package/@humanspeak/svelte-markdown) [](https://github.com/humanspeak/svelte-markdown/actions/workflows/npm-publish.yml) [](https://coveralls.io/github/humanspeak/svelte-markdown?branch=main) [](https://github.com/humanspeak/svelte-markdown/blob/main/LICENSE) [](https://www.npmjs.com/package/@humanspeak/svelte-markdown) [](https://github.com/humanspeak/svelte-markdown/actions/workflows/codeql.yml) [](https://packagephobia.com/result?p=@humanspeak/svelte-markdown) [](https://trunk.io) [](http://www.typescriptlang.org/) [](https://www.npmjs.com/package/@humanspeak/svelte-markdown) [](https://github.com/humanspeak/svelte-markdown/graphs/commit-activity) ## Features - ๐ **Secure HTML parsing** via HTMLParser2 with built-in XSS defaults (protocol allowlist, `on*` handler stripping) - ๐ Full markdown syntax support through Marked