unified and remark form an AST-based content processing pipeline used under the hood by MDsveX, svelte-exmarkdown, and Carta. @humanspeak/svelte-markdown uses marked for a more straightforward parse-and-render approach.
| Feature | @humanspeak/svelte-markdown | unified / remark |
|---|---|---|
| Svelte 5 Native | ||
| TypeScript Support | ||
| Component Output | Svelte components | HTML string (rehype-stringify) |
| Custom Renderers | Svelte components | AST transformers |
| Token Caching | Manual | |
| Plugin Ecosystem | Marked extensions | 200+ remark/rehype plugins |
| AST Access | ||
| Learning Curve | Minimal | Steep (AST concepts) |
| Bundle Size | ~15KB | ~30KB+ (unified + remark + rehype) |
| Setup | One component | Pipeline assembly required |
Choose unified/remark when you need deep AST transformations, content linting, or access to the massive plugin ecosystem. Choose @humanspeak/svelte-markdown for a simple, Svelte-native rendering experience that just works.
Install in seconds and render your first markdown.