marked is the markdown parser that powers @humanspeak/svelte-markdown. Using marked directly gives you a raw HTML string; we wrap it in a full Svelte component system with renderers, caching, and safety controls.
| Feature | @humanspeak/svelte-markdown | marked |
|---|---|---|
| Svelte 5 Native | ||
| TypeScript Support | ||
| Component Output | Svelte components | Raw HTML string |
| Custom Renderers | Svelte components | Token manipulation |
| Token Caching | Built-in LRU cache | Manual implementation |
| HTML Safety | Allow/deny per tag | Manual sanitization |
| Extensions | Full marked extensions support | Full extensions API |
| GFM Support | ||
| Bundle Size | ~15KB (includes marked) | ~8KB (parser only) |
| Framework Integration | Native Svelte | Requires {@html} |
We use marked internally — so you get all of its parsing power for free. Choose marked directly when you need a framework-agnostic parser or want the absolute smallest bundle. Choose @humanspeak/svelte-markdown when you want the Svelte DX layer: component rendering, caching, HTML controls, and TypeScript types.
Install in seconds and render your first markdown.