Svelte Markdown renderer quick start
The Svelte component builds on Core with syntax repair, smooth streaming and replaceable rendering slots. It uses Svelte 5 and works in existing Svelte and SvelteKit projects.
Install
Your project's Svelte compiler processes the components. Importing them also loads their styles.
Render your first message
Connect streaming text
Always pass the complete text received so far. Set streaming to false when the request ends.
Choose a component
Fluxdown includes code highlighting, math and diagrams. FluxdownLite provides the basics, while FluxdownRaw takes the complete plugin list you supply.
Import
Fluxdownfrom@fluxdown/svelteor@fluxdown/svelte/full,FluxdownLitefrom@fluxdown/svelte/lite, andFluxdownRawfrom@fluxdown/svelte/raw.
Next steps
- Streaming: control smoothing and trailing effects.
- Styling: adjust colors, typography and spacing.
- Plugin matrix: choose a preset or assemble your own.
- Side-by-side demo: explore static and streaming output in React, Vue, Svelte, Angular, React Native, Lynx, Solid, and Taro together.