-
Notifications
You must be signed in to change notification settings - Fork 3
Open
Description
<script>
import { Streamdown } from 'svelte-streamdown';
// Import only the components you need
import Code from 'svelte-streamdown/code'; // Shiki syntax highlighting
import Mermaid from 'svelte-streamdown/mermaid'; // Mermaid diagrams
import Math from 'svelte-streamdown/math'; // KaTeX math rendering
</script>
<Streamdown
{content}
components={{ code: Code, mermaid: Mermaid, math: Math }}
/>
how can i render KaTeX math
i.e $$
f(x) = \frac{1}{\sigma\sqrt{2\pi}} e^{-\frac{1}{2}\left(\frac{x-\mu}{\sigma}\right)^2}
$$
or like streamdown.ai
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels